void (@NotNull String insert, boolean indentSequenceVal, boolean autoHyphen) { String testName = getTestName(true); String fileName = ObjectUtils.notNull(StringUtil.substringBefore(testName, "_"), testName); myFixture.configureByFile(fileName + ".before.yml"); boolean backupIndentSequenceVal = getCustomSettings().INDENT_SEQUENCE_VALUE; getCustomSettings().INDENT_SEQUENCE_VALUE = indentSequenceVal; boolean backupAutoHyphen = getCustomSettings().AUTOINSERT_SEQUENCE_MARKER; getCustomSettings().AUTOINSERT_SEQUENCE_MARKER = autoHyphen; myFixture.type(insert); myFixture.checkResultByFile(fileName + ".after.yml"); getCustomSettings().INDENT_SEQUENCE_VALUE = backupIndentSequenceVal; getCustomSettings().AUTOINSERT_SEQUENCE_MARKER = backupAutoHyphen; }