protected void WriteCheckException(bool throws) { if (!throws) return; if (Class.IsStatic) WriteLine("MagickExceptionHelper.Check(exception);"); else WriteLine("CheckException(exception);"); }