This method looks a bit odd here. It does not have any UI code, nor does it use the source viewer. Looks more like a document-specific operation.