int () { if (this instanceof PsiDeclaredTarget) { final TextRange range = ((PsiDeclaredTarget)this).getNameIdentifierRange(); if (range != null) { return range.getStartOffset() + myElement.getTextRange().getStartOffset(); } } return myElement.getTextOffset(); }