code: static Method lookupMethod(Class<?> javaClass, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException {
          if (System.getSecurityManager() != null) {
              try {
                  return AccessController.doPrivileged(new MethodLookupAction(javaClass, methodName, parameterTypes));
              } catch (PrivilegedActionException e) {
                  if (e.getCause() instanceof NoSuchMethodException) {
                      throw (NoSuchMethodException) e.getCause();
                  }
                  throw new WeldException(e.getCause());
              }
          } else {
              return MethodLookupAction.lookupMethod(javaClass, methodName, parameterTypes);
          }
      }
docs: Does not perform {@link PrivilegedAction} unless necessary.
  
  @param javaClass
  @param methodName
  @param parameterTypes
  @return a method from the class or any class/interface in the inheritance hierarchy
  @throws NoSuchMethodException