void (@NotNull MultiMap<VirtualFile, AbstractFilePatchInProgress<?>> result) { AbstractFilePatchInProgress first = ContainerUtil.getFirstItem(myVariants); if (first == null) return; AbstractFilePatchInProgress best = null; if (first instanceof TextFilePatchInProgress) { if (myUseProjectRootAsPredefinedBase) { best = findBestByBaseDir(); } if (best == null) { best = findBestByText(); } } else { best = findBestByBaseDir(); if (best == null) { best = findBestByStrip(); } } if (best != null) { putSelected(result, myVariants, best); } }