docs: public static boolean isMethodCallOnObject(Expression expression, String methodObjectPattern) {
          if (expression instanceof MethodCallExpression) {
              Expression objectExpression = ((MethodCallExpression) expression).getObjectExpression();
              if (objectExpression instanceof VariableExpression) {
                  String name = ((VariableExpression) objectExpression).getName();
                  if (name != null && name.matches(methodObjectPattern)) {
                      return true;
                  }
              }
              if (objectExpression instanceof PropertyExpression && objectExpression.getText() != null && objectExpression.getText().matches(methodObjectPattern)) {
                  return true;
              }
              if (objectExpression instanceof MethodCallExpression && isMethodNamed((MethodCallExpression) objectExpression, methodObjectPattern)) {
                  return true;
              }
          }
          return false;
      }