EditorFactory editorFactory = EditorFactory.getInstance();
final Editor[] allEditors = editorFactory.getAllEditors();
((EditorFactoryImpl)editorFactory).validateEditorsAreReleased(getProject());
for (Editor editor : allEditors) {
editorFactory.releaseEditor(editor);
}
assertEquals(0, allEditors.length);
}
finally {
myProjectManager = null;