void (@NotNull PsiFile psiFile) { psiFile.accept(new GroovyPsiElementVisitor(new GroovyRecursiveElementVisitor() { @Override public void visitGStringExpression(@NotNull GrString gstring) { disableRange(gstring.getTextRange(), false); } @Override public void visitLiteralExpression(@NotNull GrLiteral literal) { disableRange(literal.getTextRange(), false); } })); }