@Override
    public void visitCatchClause(@NotNull GrCatchClause catchClause) {
      super.visitCatchClause(catchClause);
      final GrOpenBlock block = catchClause.getBody();
      if (block == null) {
        return;
      }
      final GrParameter parameter = catchClause.getParameter();
      if (parameter == null) {
        return;
      }
      if (GrExceptionUtil.ignore(parameter)) return;
      final CatchParameterUsedVisitor visitor = new CatchParameterUsedVisitor(parameter);
      block.accept(visitor);
      if (!visitor.isUsed()) {
        final PsiElement nameIdentifier = parameter.getNameIdentifierGroovy();
        registerError(nameIdentifier, GroovyBundle.message("inspection.message.unused.catch.parameter.ref"),
                      new LocalQuickFix[]{QuickFixFactory.getInstance().createRenameElementFix(parameter, IGNORED)},
                      ProblemHighlightType.GENERIC_ERROR_OR_WARNING);
      }
    }
@Override
    public void visitCatchClause(@NotNull GrCatchClause catchClause)