@Override
    public boolean value(final PsiElement element) {
      PsiConditionalExpression ternary = tryCast(element, PsiConditionalExpression.class);
      if (ternary != null) {
        final PsiExpression condition = ternary.getCondition();
        if (isOneOfVariablesDefinitelyNull(ternary, condition)) return true;
      }

      final PsiIfStatement ifStatement = tryCast(element, PsiIfStatement.class);
      if (ifStatement == null) return false;

      final PsiExpression condition = ifStatement.getCondition();
      return isOneOfVariablesDefinitelyNull(ifStatement, condition);
    }
@Override
    public boolean value(final PsiElement element)