in hadoop-api-shim/src/main/java/org/apache/hadoop/fs/shim/impl/ShimReflectionSupport.java [106:113]
public static Method getMethod(Class<?> source, String name, Class<?>... parameterTypes) {
try {
return source.getMethod(name, parameterTypes);
} catch (NoSuchMethodException | SecurityException e) {
LOG.debug("Class {} does not implement {}", source, name);
return null;
}
}