public static void updateDialog(PsiClass clazz, MemberChooser<? super PsiElementClassMember<?>> dialog) {
        final PsiElementClassMember<?>[] members = buildMembersToShow(clazz);
        dialog.resetElements(members);
        dialog.selectElements(getPreselection(clazz, members));
    }
public static void updateDialog(PsiClass clazz, MemberChooser<? super PsiElementClassMember<?>> dialog)