docs: public ProjectCache withModes(CacheMode... modes) {
          java.util.ArrayList<String> modesCopy = new java.util.ArrayList<String>(modes.length);
          for (CacheMode value : modes) {
              modesCopy.add(value.toString());
          }
          if (getModes() == null) {
              setModes(modesCopy);
          } else {
              getModes().addAll(modesCopy);
          }
          return this;
      }