code: private static boolean hasCompatibleConstructor(Class<?>[] paramTypes, Class<?>[] constructorTypes)
      {
          for (int i = 0; i < paramTypes.length; i++)
          {
              if (constructorTypes[i].isAssignableFrom(paramTypes[i]))
              {
                  return true;
              }
          }
          return false;
      }
docs: Check if there is a compatible constructor for the types.
  
  @param paramTypes The types as input.
  @param constructorTypes The constructors to check.
  @return <code>true</code> if at least one constructor is compatible, <code>false</code> else.