PsiField (@Nullable PsiExpression value) { value = PsiUtil.skipParenthesizedExprDown(value); if (!(value instanceof PsiReferenceExpression reference)) { return null; } if (hasSubstantialQualifier(reference)) { return null; } final PsiElement referent = reference.resolve(); if (!(referent instanceof PsiField)) { return null; } return (PsiField)referent; }