void () { final MyElement element = createElement("<a/>"); final MyElement child = element.getChild(); final MyElement child2 = element.getChild2(); final PsiElement tag = element.getXmlTag().add(createTag("<child/>")); incModCount(); assertTrue(child.isValid()); assertEquals(tag, child.getXmlTag()); assertTrue(child2.isValid()); assertNull(child2.getXmlTag()); }