boolean (@NotNull VirtualFile file, final String name) { if (ApplicationManager.getApplication().isUnitTestMode() && myIgnoreContentRootsCheck) return true; // security check to avoid overwriting system files with a patch if (!inContent(file) && myVcsManager.getVcsRootFor(file) == null) { setErrorMessage(VcsBundle.message("patch.apply.outside.content.root.message", name)); return false; } return true; }