private int Rank(ChangeType type) { if (type.IncludesOneOf(ChangeType.Delete)) return 0; if (type.IncludesOneOf(ChangeType.Rename)) return 1; return 2; }