void (@NotNull MultiMap<VirtualFile, AbstractFilePatchInProgress<?>> result, @NotNull List<? extends AbstractFilePatchInProgress<?>> variants, @NotNull AbstractFilePatchInProgress<?> patchInProgress) { patchInProgress.setAutoBases(ContainerUtil.mapNotNull(variants, AbstractFilePatchInProgress::getBase)); result.putValue(patchInProgress.getBase(), patchInProgress); }