void (@NotNull State state) { myFiles = new HashMap<>(); for (DownloadedLibraryState libraryState : state.myLibraries) { List<File> files = new ArrayList<>(); for (String path : libraryState.myPaths) { files.add(new File(path)); } myFiles.put(libraryState.myId, files); } }