void (@NotNull PyAbstractPackageCache newValue, @NotNull String cacheFileName) { try { final Path cacheFilePath = getDefaultCachePath(cacheFileName); Files.createDirectories(cacheFilePath.getParent()); try (Writer writer = Files.newBufferedWriter(cacheFilePath, StandardCharsets.UTF_8)) { ourGson.toJson(newValue, writer); } } catch (IOException | JsonIOException exception) { LOG.error("Cannot save " + cacheFileName + " package cache to the filesystem", exception); } }