}
}
return result;
}
@Nullable
<BUG>public VirtualFile findFileToPatch(@NotNull final VirtualFile patchedDir, final int skipTopDirs) {

VirtualFile file = findFileToPatchByName(patchedDir, skipTopDirs, myBeforeName);
</BUG>
if (file == null) {

}
public ApplyPatchStatus apply(final VirtualFile patchedDir, final int skipTopDirs) throws ApplyPatchException, IOException {
VirtualFile fileToPatch = findFileToPatch(patchedDir, skipTopDirs, false);
if (fileToPatch == null) {
throw new ApplyPatchException("Cannot find file to patch: " + myBeforeName);
}
