PsiClassPanel (PsiClassPanel boundedComponent, final Project project) { if (boundedComponent == null) { boundedComponent = new PsiClassPanel(); } ReferenceEditorWithBrowseButton editor = JavaReferenceEditorUtil.createReferenceEditorWithBrowseButton(null, "", project, true); Document document = editor.getChildComponent().getDocument(); PsiCodeFragmentImpl fragment = (PsiCodeFragmentImpl) PsiDocumentManager.getInstance(project).getPsiFile(document); assert fragment != null; fragment.setIntentionActionsFilter(IntentionFilterOwner.IntentionActionsFilter.EVERYTHING_AVAILABLE); fragment.putUserData(ModuleUtil.KEY_MODULE, getDomWrapper().getExistingDomElement().getModule()); return initReferenceEditorWithBrowseButton(boundedComponent, editor, this); }