TextRange (@NotNull PsiSnippetDocTagImpl element) { final List<TextRange> ranges = element.getContentRanges(); if (ranges.isEmpty()) return TextRange.EMPTY_RANGE; final int startOffset = ranges.get(0).getStartOffset(); final int endOffset = ContainerUtil.getLastItem(ranges).getEndOffset(); return TextRange.create(startOffset, endOffset); }