TextRange (SourcePosition sourcePosition) { for (SourcePositionHighlighter provider : DumbService.getDumbAwareExtensions(sourcePosition.getFile().getProject(), EP_NAME)) { TextRange range = provider.getHighlightRange(sourcePosition); if (range != null) { return range; } } return null; }