void (@NotNull Consumer<Object> fileMapper, @NotNull Build build) { String originalKey = getBuildKeyPrefix(build.getBuildIdentifier()); fileMapper.accept(build); String currentKey = getBuildKeyPrefix(build.getBuildIdentifier()); if (!originalKey.equals(currentKey)) { myBuildsKeyPrefixesMapping.put(currentKey, originalKey); } }