void (final ActionEvent e) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701, EA-766230")) { final TreeClassChooserFactory factory = TreeClassChooserFactory.getInstance(myProject); final TreeClassChooser chooser = factory.createInheritanceClassChooser(UIDesignerBundle.message("title.choose.component.class"), GlobalSearchScope.allScope(myProject), JavaPsiFacade.getInstance(myProject) .findClass(JComponent.class.getName(), GlobalSearchScope.allScope(myProject)), true, true, null); chooser.showDialog(); final PsiClass result = chooser.getSelected(); if (result != null) { setEditorText(result.getQualifiedName()); } } }