boolean (@NotNull Project project, Editor editor, PsiFile file) { Presentation presentation = myAction.getPresentation(ActionContext.from(editor, file)); if (presentation == null) return false; myPresentation = presentation; return true; }