TextRange (GroovyPsiElement element) { element.accept(new MyRestoringVisitor()); assert element instanceof GrMethodCallExpression; final int offset = element.getTextRange().getEndOffset(); return new TextRange(offset, offset); }