docs: private static boolean hasRemoteException(Method method)
      {
          for (Class<?> exceptionType : method.getExceptionTypes())
          {
              if (exceptionType == RemoteException.class ||
                  exceptionType == IOException.class ||
                  exceptionType == Exception.class ||
                  exceptionType == Throwable.class)
              {
                  return true;
              }
          }
  
          return false;
      }