void (@NotNull CompositeElement parent, TreeElement anchorBefore, @NotNull OuterLanguageElement toInsert) { if(anchorBefore != null) { //[mike] //Nasty hack. Is used not to insert OuterLanguageElements before the first token of tag. //See GeneralJspParsingTest.testHtml6 if (anchorBefore.getElementType() == XmlTokenType.XML_START_TAG_START) { anchorBefore = anchorBefore.getTreeParent(); } anchorBefore.rawInsertBeforeMe((TreeElement)toInsert); } else parent.rawAddChildren((TreeElement)toInsert); }