TextRange (@NotNull final GrLiteralContainer element) { if (element instanceof GrStringContent) { return TextRange.from(0, element.getTextLength()); } final String text = element.getText(); if (!(element.getValue() instanceof String)) { return super.getRangeInElement(element); } return getLiteralRange(text); }