void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); Editor editor = e.getRequiredData(CommonDataKeys.EDITOR); Integer selectedOffset = e.getData(SELECTED_OFFSET_KEY); LineStatusTracker<?> tracker = LineStatusTrackerManager.getInstance(project).getLineStatusTracker(editor.getDocument()); assert tracker != null; Range range = null; if (selectedOffset != null) { int line = editor.getDocument().getLineNumber(selectedOffset); range = tracker.getRangeForLine(line); } doAction(tracker, editor, range); }