Suppose I'm given a Document interface or DocumentImpl class. I can test whether it relates to a physical file or not by checking document's file with FileDocumentManager -- if it's null, it's not a physical document.
However, if file is null, this could relate to a document for either the event log (build events etc.) or the console output when the program is executed (or something else?).
My question: how can I programmatically tell which tool window this Document(Impl) relates to?