void (ActionEvent e) { TreeClassChooserFactory f = TreeClassChooserFactory.getInstance(myProject); TreeClassChooser dialog = f.createAllProjectScopeChooser(JavaBundle.message("intention.create.test.dialog.choose.super.class")); dialog.showDialog(); PsiClass aClass = dialog.getSelected(); if (aClass != null) { String superClass = aClass.getQualifiedName(); mySuperClassField.appendItem(superClass); mySuperClassField.getChildComponent().setSelectedItem(superClass); } }