public static Trinity<MockProjectEx, MockPsiManager, PsiFileFactoryImpl> initPsiFileFactory(Disposable rootDisposable) {
final MockApplicationEx application = initApplication(rootDisposable);
ComponentAdapter component = application.getPicoContainer().getComponentAdapter(ProgressManager.class.getName());
if (component == null) {
application.getPicoContainer().registerComponent(new AbstractComponentAdapter(ProgressManager.class.getName(), Object.class) {
@Override
public Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException {
return new ProgressManagerImpl();
}