PsiElement (PsiExpression expr) { PsiClass parentClass = expr != null ? getParentClass(expr) : null; if (parentClass == null) return null; IsStaticFinalInitializerExpression visitor = new IsStaticFinalInitializerExpression(parentClass, expr); expr.accept(visitor); return visitor.getElementReference(); }