Bug 38569 Override/Implement Methods dialog should expand first element in viewer.
The treeviewer in the Override/Implement dialog isn't automatically revelaing the first element in the list, but it should to be consistent with other dialogs.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
}
	}
	
	private static IMethod[] resolveMethodsHierarchy(IType type) throws JavaModelException {
		Map map = new HashMap();
		IType[] superTypes = JavaModelUtil.getAllSuperTypes(type, new NullProgressMonitor());
		addMethodsToMapping(map, type);
		for (int i = 0; i < superTypes.length; i++) {
			addMethodsToMapping(map, superTypes[i]);
		}
		return (IMethod[]) map.values().toArray(new IMethod[map.values().size()]);
	}
	private static void addMethodsToMapping(Map map, IType type) throws JavaModelException {
		IMethod[] methods = type.getMethods();
		for (int i = 0; i < methods.length; i++) {
			map.put(createSignatureKey(methods[i]), methods[i]);
		}
	}
	
	private static IMethod[] resolveFinalMethods(IType type) throws JavaModelException {
		
		if (type.isInterface()) {
			type = getJavaLangObject(type.getJavaProject());
		}
		IMethod[] methods = resolveMethodsHierarchy(type);
		List list = new ArrayList(methods.length);
		for (int i = 0; i < methods.length; i++) {
			boolean isFinal = Flags.isFinal(methods[i].getFlags());
			if (isFinal)
				list.add(methods[i]);