ApplyPatchForBaseRevisionTexts (@NotNull String localContent, @NotNull TextFilePatch patch) { GenericPatchApplier.AppliedSomehowPatch appliedPatch = GenericPatchApplier.applySomehow(localContent, patch.getHunks()); String patchedContent = StringUtil.convertLineSeparators(appliedPatch.patchedText); return new ApplyPatchForBaseRevisionTexts(patchedContent, localContent, null, appliedPatch.isAppliedSomehow); }