TestInitializer (String elementSeparator, String modifierSeparator, String shortPrefix) { return (fixture, testRootDisposable) -> { EmmetOptions options = EmmetOptions.getInstance(); String oldElementSeparator = options.getBemElementSeparator(); String oldModifierSeparator = options.getBemModifierSeparator(); String oldShortPrefix = options.getBemShortElementPrefix(); options.setBemElementSeparator(elementSeparator); options.setBemModifierSeparator(modifierSeparator); options.setBemShortElementPrefix(shortPrefix); Disposer.register(testRootDisposable, () -> { options.setBemElementSeparator(oldElementSeparator); options.setBemModifierSeparator(oldModifierSeparator); options.setBemShortElementPrefix(oldShortPrefix); }); }; }