void (PsiMethod interfaceMethod, PsiSubstitutor psiSubstitutor, PsiTypeCastExpression typeCast, PsiType opType) { for (PsiClassType thrownType : interfaceMethod.getThrowsList().getReferencedTypes()) { PsiType left = psiSubstitutor.substitute(thrownType); if (left != null && TypeConversionUtil.isAssignable(left, opType, false)) { addToResults(typeCast); } } }