PsiReferenceExpression (@NotNull PsiElement element) { if (element instanceof PsiReferenceExpression) { return (PsiReferenceExpression) element; } return ObjectUtils.tryCast(element.getParent(), PsiReferenceExpression.class); }