docs: static String[] getRemoteTypeIds(Class<?> remoteInterface) {
          ArrayList<String> remoteTypes = new ArrayList<String>();
          remoteTypes.add(getRemoteTypeId(remoteInterface));
  
          Class<?>[] interfaces = remoteInterface.getInterfaces();
          for (Class<?> remote : interfaces) {
              if (remote != Remote.class) {
                  remoteTypes.add(getRemoteTypeId(remote));
              }
          }
  
          return remoteTypes.toArray(new String[remoteTypes.size()]);
      }