void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); boolean enabled = ApplicationManager.getApplication().isInternal() && getEditor(e) != null && myFileClass.isInstance(getPsiFile(e)); presentation.setEnabledAndVisible(enabled); }