private static boolean isField(PsiExpression expression) {
      if (expression instanceof PsiAssignmentExpression assignmentExpression) {
        return isField(assignmentExpression.getRExpression());
      }
      if (expression instanceof PsiReferenceExpression referenceExpression) {
        return referenceExpression.resolve() instanceof PsiField;
      }
      return false;
    }
private static boolean isField(PsiExpression expression)