PsiElement (@NotNull PsiNameIdentifierOwner nameIdentifierOwner) { PsiElement identifyingElement = nameIdentifierOwner.getNameIdentifier(); if (identifyingElement == null) { return null; } TextRange identifyingElementRange = identifyingElement.getTextRange(); if (identifyingElementRange == null) { return null; } return identifyingElement; }