private void resolve() throws NameResolutionException {
    // if argTypes contains a null, then go directly to resolveGeneral(),
    // otherwise try to resolve on the specific types first
    // (a null type gets passed in if the runtime value of the arg is null)
    for (final Class argType : _argTypes) {
      if (argType == null) {
        resolveGeneral();
        return;
      }
    }

    // first try to get the method based on the exact parameter types
    try {
      _method = _targetClass.getMethod(_methodName, _argTypes);
    } catch (NoSuchMethodException e) {
      resolveGeneral();
    }
  }
Utility class for mapping operations in the query language to Java methods
geode-core/src/main/java/org/apache/geode/cache/query/internal/MethodDispatch.java