code: public static void doWithLocalMethods(Class<?> clazz, MethodCallback mc) {
  		Method[] methods = getDeclaredMethods(clazz);
  		for (Method method : methods) {
  			try {
  				mc.doWith(method);
  			}
  			catch (IllegalAccessException ex) {
  				throw new IllegalStateException("Not allowed to access method '" + method.getName() + "': " + ex);
  			}
  		}
  	}
docs: Perform the given callback operation on all matching methods of the given
  class, as locally declared or equivalent thereof (such as default methods
  on Java 8 based interfaces that the given class implements).
  @param clazz the class to introspect
  @param mc the callback to invoke for each method
  @since 4.2
  @see #doWithMethods