spring-geode/src/main/java/org/springframework/geode/core/util/ObjectUtils.java
/**
	 * Finds a {@link Method} with the given {@link Method#getName() name} on {@link Class type} which can be invoked
	 * with the given {@link Object arguments}.
	 *
	 * @param type {@link Class} type to evaluate for the {@link Method}.
	 * @param methodName {@link String} containing the name of the {@link Method} to find.
	 * @param args {@link Object array of arguments} used when invoking the method.
	 * @return an {@link Optional} {@link Method} on {@link Class type} potentially matching
	 * the {@link Object arguments} of the invocation.
	 * @see java.lang.Class
	 * @see java.lang.reflect.Method
	 * @see java.util.Optional
	 */
Finds a  Method with the given  Method#getName() name on  Class type which can be invoked
with the given  Object arguments.

@param type  Class type to evaluate for the  Method.
@param methodName  String containing the name of the  Method to find.
@param args  Object array of arguments used when invoking the method.
@return an  Optional  Method on  Class type potentially matching
the  Object arguments of the invocation.
Finds a Method with the given Method#getName () name on Class type which can be invoked with the given Object arguments . @param type Class type to evaluate for the Method . @param methodName String containing the name of the Method to find . @param args Object array of arguments used when invoking the method . @return an Optional Method on Class type potentially matching the Object arguments of the invocation .
public static Optional<Method> findMethod(@NonNull Class<?> type, @NonNull String methodName, Object... args) {
		return Arrays.stream(nullSafeArray(type.getDeclaredMethods(), Method.class))
			.filter(methodNameMatchesPredicate(methodName))
			.filter(argumentsMatchParameterTypesPredicate(args))
			.findFirst();
	}
public static Optional < Method > findMethod ( @ NonNull Class < ? > type , @ NonNull String methodName , Object ... args ) { return Arrays . stream ( nullSafeArray ( type . getDeclaredMethods ( ) , Method . class ) ) . filter ( methodNameMatchesPredicate ( methodName ) ) . filter ( argumentsMatchParameterTypesPredicate ( args ) ) . findFirst ( ) ; }
Finds a {@link Method} with the given {@link Method#getName() name} on {@link Class type} which can be invoked
 with the given {@link Object arguments}.
Finds a { @link Method } with the given { @link Method#getName () name } on { @link Class type } which can be invoked with the given { @link Object arguments } .