NullDereferenceExceptionProblem (PsiExpression expression) { NullabilityProblemKind.NullabilityProblem<?> problem = NullabilityProblemKind.fromContext(expression, Collections.emptyMap()); if (problem != null && problem.thrownException() != null) { return new NullDereferenceExceptionProblem(expression); } return null; }