private void doShow(boolean navigate) {
    ThreadingAssertions.assertEventDispatchThread();
    if (ApplicationManager.getApplication().isUnitTestMode()) return;

    removeHighlighter();

    myEditor = null;
    if (myOpenFileDescriptor != null) {
      if (!navigate) {
        FileEditor editor = FileEditorManager.getInstance(myProject).getSelectedEditor(myOpenFileDescriptor.getFile());
        if (editor instanceof TextEditor) {
          myEditor = ((TextEditor)editor).getEditor();
        }
      }
      else {
        myEditor = XDebuggerUtil.getInstance().openTextEditor(myOpenFileDescriptor);
      }
    }
    if (myEditor != null) {
      addHighlighter();
    }
  }
private void doShow(boolean navigate)