boolean (@NotNull MouseEvent event) { AnAction connectAction = ActionManager.getInstance().getAction("RemoteServers.ConnectServer"); DataContext dataContext = DataManager.getInstance().getDataContext(event.getComponent()); AnActionEvent actionEvent = AnActionEvent.createFromAnAction(connectAction, event, ActionPlaces.UNKNOWN, dataContext); connectAction.actionPerformed(actionEvent); return true; }