String () { String title = JavaBundle.message("postfix.template.editor.choose.class.title"); if (myProject == null || myProject.isDefault()) { return Messages.showInputDialog(myPanel, JavaBundle.message("label.enter.fully.qualified.class.name"), JavaBundle.message("dialog.title.choose.class"), null); } TreeClassChooser chooser = TreeClassChooserFactory.getInstance(myProject).createAllProjectScopeChooser(title); chooser.showDialog(); PsiClass selectedClass = chooser.getSelected(); return selectedClass != null ? selectedClass.getQualifiedName() : null; }