EditorNotificationPanel (final VirtualFile file, final Project project, @NotNull FileEditor fileEditor) { final EditorNotificationPanel panel = new EditorNotificationPanel(fileEditor, EditorNotificationPanel.Status.Info); panel.setText(GroovyBundle.message("generated.stub.message")); panel.createActionLabel(GroovyBundle.message("generated.stub.navigate.link.label"), () -> DumbService.getInstance(project).withAlternativeResolveEnabled(() -> { final PsiClass original = findClassByStub(project, file); if (original != null) { original.navigate(true); } })); panel.createActionLabel(GroovyBundle.message("generated.stub.exclude.link.label"), () -> DumbService.getInstance(project).withAlternativeResolveEnabled(() -> { final PsiClass psiClass = findClassByStub(project, file); if (psiClass != null) { ExcludeFromStubGenerationAction.doExcludeFromStubGeneration(psiClass.getContainingFile()); } })); return panel; }