GrDocTag (@NonNls String name) { if (!getText().contains(name)) return null; for (PsiElement e = getFirstChild(); e != null; e = e.getNextSibling()) { if (e instanceof GrDocTag && ((GrDocTag)e).getName().equals(name)) { return (GrDocTag)e; } } return null; }