TestInitializer (final boolean value) { return (fixture, testRootDisposable) -> { final boolean oldValue = EmmetOptions.getInstance().isAddEditPointAtTheEndOfTemplate(); EmmetOptions.getInstance().setAddEditPointAtTheEndOfTemplate(value); Disposer.register(testRootDisposable, () -> EmmetOptions.getInstance().setAddEditPointAtTheEndOfTemplate(oldValue)); }; }