void (@NotNull List<PatchAndVariants> candidates, @NotNull MultiMap<VirtualFile, AbstractFilePatchInProgress<?>> result) { for (final PatchAndVariants candidate : candidates) { candidate.findAndAddBestVariant(result); } }