void () { ProjectServiceContainerCustomizer.Companion.getEp().maskAll(Collections.singletonList(project -> { try { LegacyCodeStyleSettingsManager legacyCodeStyleSettingsManager = new LegacyCodeStyleSettingsManager(); Element element = JDOMUtil.load(new File(getTestDataPath() + getTestName(true) + ".xml")); legacyCodeStyleSettingsManager.loadState(element); ServiceContainerUtil.registerServiceInstance(project, LegacyCodeStyleSettingsManager.class, legacyCodeStyleSettingsManager); } catch (Exception e) { LOG.error(e); } }), getTestRootDisposable(), false); }