TextRange (@NotNull PropertyImpl element) { ASTNode valueNode = element.getValueNode(); if (valueNode == null) return TextRange.from(element.getTextLength(), 0); TextRange range = valueNode.getTextRange(); return TextRange.from(range.getStartOffset() - element.getTextRange().getStartOffset(), range.getLength()); }