TreeElement (@NotNull PsiElement original, @NotNull CharTable table, @NotNull PsiManager manager) { if (original instanceof GrModifierList) { final String text = original.getText(); assert text != null : "Text is null for " + original + "; " + original.getClass(); final GrModifierList modifierList = GroovyPsiElementFactory.getInstance(manager.getProject()).createModifierList(text); return (TreeElement)modifierList.getNode(); } return null; }