private static void putSelected(@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);
  }
private static void putSelected(@NotNull MultiMap<VirtualFile, AbstractFilePatchInProgress<?>> result,
                                  @NotNull List<? extends AbstractFilePatchInProgress<?>> variants,
                                  @NotNull AbstractFilePatchInProgress<?> patchInProgress)