TextRange () { final PsiElement identifier = myStatement.getLabelIdentifier(); if (identifier == null) { return new TextRange(-1, -2); } final int offsetInParent = identifier.getStartOffsetInParent(); return new TextRange(offsetInParent, offsetInParent + identifier.getTextLength()); }