protected Document createDocument(final XExpression text) {
    if (myProject.isDefault()) {
      return new DocumentImpl(text.getExpression());
    }
    XDebuggerEditorsProvider provider = getEditorsProvider();
    if (myContext != null && provider instanceof XDebuggerEditorsProviderBase) {
      return ((XDebuggerEditorsProviderBase)provider).createDocument(myProject, text, myContext, myMode);
    }
    else {
      return provider.createDocument(myProject, text, mySourcePosition, myMode);
    }
  }
protected Document createDocument(final XExpression text)