}
@Override
public <T> T getUserData(@NotNull Key<T> key) {
if (key == FileDocumentManagerImpl.DOCUMENT_KEY) {
DBContentType mainContentType = getMainContentType();
boolean isCode = mainContentType == DBContentType.CODE || mainContentType == DBContentType.CODE_BODY;
if (isCode) {
if (FAKE_DOCUMENT.get() != null) {
return (T) new WeakReference<Document>(FAKE_DOCUMENT.get());
}