void (String fileNameBefore, String fileNameAfter, String folder, String intention) { configureByFile(BASE_PATH + "/" + folder + "/" + fileNameBefore); final List<IntentionAction> list = getAvailableActions(); final IntentionAction action = CodeInsightTestUtil.findIntentionByPartialText(list, intention); assertNotNull(action); invoke(action); checkResultByFile(BASE_PATH + "/" + folder + "/" + fileNameAfter); }