void (@NotNull PsiCatchSection section) { super.visitCatchSection(section); if (!REPORT_CATCH_PARAMETERS) return; final PsiParameter parameter = section.getParameter(); if (PsiTreeUtil.getParentOfType(parameter, PsiClass.class) != PsiTreeUtil.getParentOfType(body, PsiClass.class)) { return; } final PsiCodeBlock catchBlock = section.getCatchBlock(); if (catchBlock == null) return; final int from = flow.getStartOffset(catchBlock); final int end = flow.getEndOffset(catchBlock); if (!ControlFlowUtil.getWrittenVariables(flow, from, end, false).contains(parameter)) { writtenVariables.remove(parameter); result.add(parameter); } }