private boolean isAtLeastOneAssignable( String main, Class< ? >... classes ) {
        for( Class< ? > clazz : classes ) {
            if (clazz.getCanonicalName().equals(main)) {
                return true;
            }
        }
        return false;
    }
private boolean isAtLeastOneAssignable ( String main , Class < ? > ... classes ) { for ( Class < ? > clazz : classes ) { if ( clazz . getCanonicalName ( ) . equals ( main ) ) { return true ; } } return false ; }
Checks if one class is assignable from at least one of the others.

@param main the canonical name of class to check.
@param classes the other classes.
@return true if at least one of the other classes match.