private static UnitDescription FetchReflectedDescription(Type unitType) { var oldName = BoltFlowNameUtility.UnitPreviousTitle(unitType); var prefix = string.IsNullOrEmpty(oldName) ? string.Empty : $"(Previously named {oldName}) "; return(new UnitDescription() { title = BoltFlowNameUtility.UnitTitle(unitType, false, true), shortTitle = BoltFlowNameUtility.UnitTitle(unitType, true, true), surtitle = unitType.GetAttribute <UnitSurtitleAttribute>()?.surtitle, subtitle = unitType.GetAttribute <UnitSubtitleAttribute>()?.subtitle, summary = prefix + unitType.Summary() }); }