void (@NotNull String pasteText, @Nullable String inputName) { String testName = getTestName(true); String fileName = ObjectUtils.notNull(StringUtil.substringBefore(testName, "_"), testName); myFixture.configureByFile(StringUtil.notNullize(inputName, fileName + ".before.yml")); CopyPasteManager.getInstance().setContents(new StringSelection(pasteText)); myFixture.performEditorAction(IdeActions.ACTION_EDITOR_PASTE); myFixture.checkResultByFile(fileName + ".after.yml"); }