code: private static boolean isIdIncluded(Collection<RemoteRepository> repositories, RemoteRepository candidate) {
          for (RemoteRepository r : repositories) {
              if (r.getId().equals(candidate.getId())) {
                  return true;
              }
          }
          return false;
      }
docs: utility methods