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