public override void Apply(List<string> lines)
{
bool found = false;
for (int i = 0; i < lines.Count; i++)
{
if (lines[i] == AfterLine)
{
lines.InsertRange(i + 1, InsertedLines);
found = true;
break;
}
}
if (!found)
throw new Exception("Failed to apply patch for " + FilePath);
}