InfoConsumer (@NotNull final Map<VirtualFile, VcsRevisionNumber> revisionMap, @NotNull final Map<String, VirtualFile> fileMap) { return info -> { if (info != null) { VirtualFile file = fileMap.get(info.getFile().getAbsolutePath()); if (file != null) { revisionMap.put(file, getRevision(info)); } else { LOG.info("Could not find virtual file for path " + info.getFile().getAbsolutePath()); } } }; }