boolean (PsiExpression expression, Predicate<? super PsiField> value) { if (expression instanceof PsiParenthesizedExpression) { final PsiExpression contents = ((PsiParenthesizedExpression)expression).getExpression(); return isBackpointerReference(contents, value); } if (!(expression instanceof PsiReferenceExpression reference)) { return false; } final PsiElement qualifier = reference.getQualifier(); if (qualifier != null && !(qualifier instanceof PsiThisExpression)) { return false; } return reference.resolve() instanceof PsiField field && value.test(field); }