void (@NotNull PsiCatchSection section) { super.visitCatchSection(section); final PsiParameter parameter = section.getParameter(); if (parameter == null) { return; } final PsiCodeBlock catchBlock = section.getCatchBlock(); if (catchBlock == null) { return; } final PsiTypeElement typeElement = parameter.getTypeElement(); if (typeElement == null) { return; } final PsiType type = typeElement.getType(); if (!hasJavaLangErrorType(type) || ExceptionUtils.isThrowableRethrown(parameter, catchBlock)) { return; } registerVariableError(parameter); }