boolean (@NotNull AnAction action) { Presentation presentation = new Presentation(); action.update(new AnActionEvent(null, DataManager.getInstance().getDataContext(this), ActionPlaces.UNKNOWN, presentation, ActionManager.getInstance(), 0)); return presentation.isEnabled(); }