private void DoAddTitle(Boss boss) { if (boss.Has<ITextEditor>() && !boss.Has<IDocumentWindowTitle>()) { var editor = boss.Get<ITextEditor>(); if (editor.Path != null && editor.Path.StartsWith(m_timeMachineDir)) { boss.ExtendWithInterface(typeof(TimeMachineWindowTitle), typeof(IDocumentWindowTitle)); } } }