private static boolean assignedToField(PsiAssignmentExpression assignmentExpression) {
    final PsiExpression lhs = PsiUtil.skipParenthesizedExprDown(assignmentExpression.getLExpression());
    if (!(lhs instanceof PsiReferenceExpression referenceExpression)) {
      return false;
    }
    final PsiElement target = referenceExpression.resolve();
    return target instanceof PsiField;
  }
private static boolean assignedToField(PsiAssignmentExpression assignmentExpression)