void (PsiMethod method) { for (PsiClassType thrownType : method.getThrowsList().getReferencedTypes()) { final InferenceVariable variable = getInferenceVariable(substituteWithInferenceVariables(thrownType)); if (variable != null) { variable.setThrownBound(); } } }