iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/rmi/RmiIdlUtil.java
public static boolean throwsRemoteException(Method method) {

        Class[] exception = method.getExceptionTypes();

        for (int i = 0; i < exception.length; ++i)
            if (exception[i].isAssignableFrom(java.rmi.RemoteException.class))
                return true;

        return false;
    }
public static boolean throwsRemoteException(Method method) {

        Class[] exception = method.getExceptionTypes();

        for (int i = 0; i < exception.length; ++i)
            if (exception[i].isAssignableFrom(java.rmi.RemoteException.class))
                return true;

        return false;
    }
/*
checks if the method's throws clause includes java.rmi.RemoteException
or a superclass of it.