void (@NotNull String newName) { configureByFile(getTestName(true) + "-before.sh"); runWithoutInplaceRename(() -> { executeAction(IdeActions.ACTION_RENAME); getEditor().getUserData(ShRenameAllOccurrencesHandler.RENAMER_KEY).renameTo(newName); }); checkResultByFile(getTestName(true) + "-after.sh"); }