boolean (PsiTryStatement tryStatement, Set<? extends PsiVariable> collectedVariables) { for (PsiCatchSection catchSection : tryStatement.getCatchSections()) { for (PsiVariable variable : collectedVariables) { if (VariableAccessUtils.variableIsUsed(variable, catchSection)) { return true; } } } return false; }