int (@NotNull String propertyName, @NotNull PsiReferenceBase reference, int positionInExpression) { final TextRange range = reference.getRangeInElement(); final int startOffset = range.getStartOffset() + positionInExpression; final int endOffset = startOffset + propertyName.length(); reference.setRangeInElement(new TextRange(startOffset, endOffset)); return positionInExpression + propertyName.length() + 1; }