MockProjectEx project = new MockProjectEx(rootDisposable);
MockPsiManager psiManager = new MockPsiManager(project);
PsiFileFactoryImpl psiFileFactory = new PsiFileFactoryImpl(psiManager);
MutablePicoContainer appContainer = application.getPicoContainer();
registerComponentInstance(appContainer, MessageBus.class, MessageBusFactory.newMessageBus(application));
registerComponentInstance(appContainer, SchemesManagerFactory.class, new MockSchemesManagerFactory());
final MockEditorFactory editorFactory = new MockEditorFactory();
registerComponentInstance(appContainer, EditorFactory.class, editorFactory);
registerComponentInstance(
appContainer, FileDocumentManager.class,
new MockFileDocumentManagerImpl(new Function<CharSequence, Document>() {