public CodegenMethod AddThrown(Type throwableClass) { if (Thrown.IsEmpty()) { Thrown = new List<Type>(); } Thrown.Add(throwableClass); return this; }