code: public void removeSnapshots() {
          VersionList versionToRemove = new VersionList();
  
          // collect Versions to be removed
          for (Version ver : this) {
              if (ver.isSnapshot()) {
                  versionToRemove.add(ver);
              }
          }
  
          // remove them
          this.removeAll(versionToRemove);
      }
docs: Removes all snapshots from this list