boolean (@NotNull GroovyPsiElement element) { final GrFinallyClause containingClause = PsiTreeUtil.getParentOfType(element, GrFinallyClause.class); if (containingClause == null) { return false; } final GrOpenBlock body = containingClause.getBody(); return PsiTreeUtil.isAncestor(body, element, true); }