void (ProblemReporter reporter, List<NullabilityProblemKind.NullabilityProblem<?>> problems) { for (NullabilityProblemKind.NullabilityProblem<?> problem : problems) { PsiExpression expression = problem.getDereferencedExpression(); if (expression != null) { if (problem.getKind() == NullabilityProblemKind.nullableReturn) { PsiType returnType = PsiTypesUtil.getMethodReturnType(expression); if (DfaPsiUtil.getTypeNullability(returnType) == Nullability.NULLABLE) continue; } actual.put(expression, "ca-nullable-to-not-null"); } } }