void () { PsiElement first = getFirstChild(); if (first == null) { getNode().addLeaf(GroovyTokenTypes.mLT, "<", null); } PsiElement last = getLastChild(); if (last.getNode().getElementType() != GroovyTokenTypes.mGT) { getNode().addLeaf(GroovyTokenTypes.mGT, ">", null); } PsiElement parent = getParent(); if (parent instanceof GrMethod) { GrModifierList list = ((GrMethod)parent).getModifierList(); PsiElement[] modifiers = list.getModifiers(); if (modifiers.length == 0) { list.setModifierProperty(GrModifier.DEF, true); } } }