boolean (@NotNull MouseEvent e, int clickCount) { final DataContext context = DataManager.getInstance().getDataContextFromFocus().getResult(); if (context == null) { return false; } final Presentation presentation = new PresentationFactory().getPresentation(action); action.actionPerformed(new AnActionEvent( e, context, GradleConstants.TOOL_WINDOW_TOOLBAR_PLACE, presentation, ActionManager.getInstance(), e.getModifiers() )); return true; }