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