void (@NotNull String extension) { configureByFile(getTestName(true) + "." + extension); CustomTemplateCallback callback = new CustomTemplateCallback(getEditor(), getFile()); ZenCodingGenerator generator = findApplicableDefaultGenerator(callback, false); assertNotNull(generator); EmmetParser parser = new XmlEmmetParser(new EmmetLexer().lex(getFile().getText()), callback, generator, false); final ZenCodingNode parseResult = parser.parse(); assertNotNull("Cannot parse input data", parseResult); assertSameLinesWithFile(getTestDataPath() + getTestName(true) + ".txt", nodeToString(parseResult, 0)); }