boolean (@NotNull final Project project, final AnActionEvent event) { if (!myHandler.isEnabled(project, event)) { return false; } Editor editor = event.getData(CommonDataKeys.EDITOR); if (editor == null) { return false; } if (event.getData(EditorGutter.KEY) != null) { return false; } return true; }