private void closeEditor() {
    boolean unsplit = false;
    if (splittedWindow != null && !splittedWindow.isDisposed()) {
      List<EditorComposite> editors = splittedWindow.getAllComposites();
      if (editors.size() == 1 && Comparing.equal(editors.get(0).getFile(), myNewVirtualFile)) {
        unsplit = true;
      }
    }
    if (unsplit) {
      ((FileEditorManagerImpl)FileEditorManager.getInstance(myProject)).closeFile(myNewVirtualFile, splittedWindow);
    }
    FileEditorManager.getInstance(myProject).closeFile(myNewVirtualFile);
  }
private void closeEditor()