ActionHandler (@NotNull Project project, @NotNull VirtualFile file) { return new ActionHandler() { @Override public void handlePanelActionClick(@NotNull EditorNotificationPanel panel, @NotNull HyperlinkEvent event) { doFix(project, file, handler -> handler.handlePanelActionClick(panel, event)); } @Override public void handleQuickFixClick(@NotNull Editor editor, @NotNull PsiFile psiFile) { doFix(project, file, handler -> handler.handleQuickFixClick(editor, psiFile)); } }; }