void (@NotNull EditorMouseEvent e) { if (e.getMouseEvent().getButton() == MouseEvent.BUTTON1 && isEnabled(e)) { int lineNumber = getLineNumber(e); XDebugSessionImpl session = getCurrentSession(); if (session != null && lineNumber >= 0) { XSourcePositionImpl position = XSourcePositionImpl.create(e.getEditor().getVirtualFile(), lineNumber); if (position != null) { e.consume(); AnAction action = ActionManager.getInstance().getAction(IdeActions.ACTION_RUN_TO_CURSOR); if (action == null) throw new AssertionError("'" + IdeActions.ACTION_RUN_TO_CURSOR + "' action not found"); DataContext dataContext = DataManager.getInstance().getDataContext(e.getMouseEvent().getComponent()); AnActionEvent event = AnActionEvent.createFromAnAction(action, e.getMouseEvent(), ActionPlaces.EDITOR_GUTTER, dataContext); ActionUtil.performDumbAwareWithCallbacks(action, event, () -> session.runToPosition(position, false)); } } } }