boolean (PsiMethod psiMethod) { PsiType returnType = psiMethod.getReturnType(); return returnType != null && TypeConversionUtil.isAssignable(myExpectedReturnType, mySubstitutor.substitute(returnType)); }