MockApplication () { MockApplication app = new MockApplication(getTestRootDisposable()); ApplicationManager.setApplication(app, () -> FileTypeManager.getInstance(), getTestRootDisposable()); app.registerService(EncodingManager.class, EncodingManagerImpl.class); return app; }