void (List<AbstractFilePatchInProgress<?>> filePatchInProgresses, String path, List<VirtualFile> bases, int strip) { for (AbstractFilePatchInProgress<?> patch : filePatchInProgresses) { if (bases.contains(patch.getBase()) && path.equals(patch.getCurrentPath()) && (patch.getCurrentStrip() == strip)) { return; } } fail("Failed for (first base only shown) '" + bases.iterator().next().getPath() + " + " + path + " " + strip + "'; results: " + printPatches(filePatchInProgresses)); }