code: public static Runnable asRunnable (Class<?> clazz, String methodName)
      {
          Method method = findMethod(clazz, methodName);
          if (!Modifier.isStatic(method.getModifiers())) {
              throw new IllegalArgumentException(
                  clazz.getName() + "." + methodName + "() must be static");
          }
          return new MethodRunner(method, null);
      }
docs: Creates a runnable that invokes the specified static method via reflection.
  
  <p> NOTE: if you specify a protected or private method this method will call {@link
  Method#setAccessible} to make the method accessible. If you're writing secure code or need
  to run in a sandbox, don't use this functionality.
  
  @throws IllegalArgumentException if the supplied method name does not correspond to a static
  zero-argument method of the supplied class.