code: private static Method[] getDeclaredMethods(Class<?> clazz) {
  		Method[] result = declaredMethodsCache.get(clazz);
  		if (result == null) {
  			result = clazz.getDeclaredMethods();
  			declaredMethodsCache.put(clazz, result);
  		}
  		return result;
  	}
docs: This method retrieves {@link Class#getDeclaredMethods()} from a local cache
  in order to avoid the JVM's SecurityManager check and defensive array copying.