public @NotNull Collection<Deployment> listDeployments() {
      synchronized (myLock) {
        if (myCachedAllDeployments == null) {
          Collection<Deployment> result = doListDeployments();
          myCachedAllDeployments = List.copyOf(result);
        }
        return myCachedAllDeployments;
      }
    }
public @NotNull Collection<Deployment> listDeployments()