TextRange (@NotNull IgnoreEntry element) { IgnoreNegation negation = element.getNegation(); if (negation != null) { return TextRange.create( negation.getStartOffsetInParent() + negation.getTextLength(), element.getTextLength() ); } return super.getRangeInElement(element); }