boolean (@Nullable PsiType paramType, @Nullable PsiType argType, @NotNull PsiElement context) { if (argType == null || paramType == null) { return true; } if (TypesUtil.isAssignableByMethodCallConversion(paramType, argType, context)) { return true; } final PsiType lType = TypesUtil.rawSecondGeneric(paramType, context.getProject()); final PsiType rType = TypesUtil.rawSecondGeneric(argType, context.getProject()); if (lType == null && rType == null) return false; return TypesUtil.isAssignableByMethodCallConversion(lType != null ? lType : paramType, rType != null ? rType : argType, context); }