boolean (@NotNull PsiExpression context, @NotNull JavaDfaAnchor anchor) { CommonDataflow.DataflowResult result = CommonDataflow.getDataflowResult(context); if (result == null || !result.anchorWasAnalyzed(anchor)) return false; DfType dfType = SpecialField.OPTIONAL_VALUE.getFromQualifier(result.getDfType(anchor)); if (dfType != DfType.TOP && !(dfType instanceof DfReferenceType)) return false; DfaNullability nullability = DfaNullability.fromDfType(dfType); return nullability == DfaNullability.UNKNOWN || nullability == DfaNullability.NULLABLE; }