static Method getMethodUnchecked(
        Class<?> type, String methodName, Class<?>... parameterTypes)
    {
        try
        {
            return type.getMethod(methodName, parameterTypes);
        } 
        catch (SecurityException e)
        {
            throw new IllegalArgumentException(e);
        } 
        catch (NoSuchMethodException e)
        {
            throw new IllegalArgumentException(e);
        }
    }
static Method getMethodUnchecked ( Class < ? > type , String methodName , Class < ? > ... parameterTypes ) { try { return type . getMethod ( methodName , parameterTypes ) ; } catch ( SecurityException e ) { throw new IllegalArgumentException ( e ) ; } catch ( NoSuchMethodException e ) { throw new IllegalArgumentException ( e ) ; } }
Delegates to {@link Class#getMethod(String, Class...)}.<br>
<br>
This call covers the following methods:
<ul>
<li><b>public</b> methods</li>
<li><b>static</b> and <b>instance</b> methods</li>
<li><i>including</i> methods from supertypes</li>
</ul>
<br>
This call is wrapping all possible checked exceptions and
SecurityExceptions into a {@link IllegalArgumentException}

@param type The type
@param methodName The method name
@param parameterTypes The parameter types
@return The method
@throws IllegalArgumentException if the the method could not be obtained