void (int count, boolean invert) { String name = getTestName(true); String lang = name.split("[0-9_]+")[0]; String suffix = name.substring(lang.length()); suffix = StringUtil.trimStart(suffix, "_"); configureByFile("/codeInsight/commentByLine/" + lang + (invert ? "/after" : "/before") + suffix + "." + lang); for (int i = 0; i < count; i++) { performAction(); } checkResultByFile("/codeInsight/commentByLine/" + lang + (invert ? "/before" : "/after") + suffix + "." + lang); }