CatchSectionWrapper (@NotNull PsiCatchSection catchSection) { final PsiParameter parameter = catchSection.getParameter(); final PsiCodeBlock codeBlock = catchSection.getCatchBlock(); if (parameter != null && codeBlock != null) { final List<PsiClassType> types = getClassTypes(parameter.getType()); if (types != null && HighlightControlFlowUtil.isEffectivelyFinal(parameter, codeBlock, null)) { final DuplicatesFinder finder = buildDuplicatesFinder(codeBlock, parameter); return new CatchSectionWrapper(catchSection, codeBlock, parameter, types, finder); } } return null; }