RepositoryLibraryProperties (Consumer<RepositoryLibraryProperties> transform) { RepositoryLibraryProperties newProperties = new RepositoryLibraryProperties(myDescriptor); transform.accept(newProperties); return newProperties; }