void (final PyStringLiteralExpression stmt) { if (stmt != null) { final DocStringFormat format = DocStringUtil.getConfiguredDocStringFormat(stmt); final String[] tags; if (format == DocStringFormat.EPYTEXT) { tags = EpydocString.ALL_TAGS; } else if (format == DocStringFormat.REST) { tags = SphinxDocString.ALL_TAGS; } else { return; } int pos = 0; while (true) { TextRange textRange = DocStringReferenceProvider.findNextTag(stmt.getText(), pos, tags); if (textRange == null) break; getHolder().newSilentAnnotation( HighlightSeverity.INFORMATION).range(textRange.shiftRight(stmt.getTextRange().getStartOffset())).textAttributes(PyHighlighter.PY_DOC_COMMENT_TAG).create(); pos = textRange.getEndOffset(); } } }