private static boolean isEmptyCheck(PsiExpression condition) {
    boolean invert = false;
    while (condition != null && BoolUtils.isNegation(condition)) {
      condition = BoolUtils.getNegated(condition);
      invert = !invert;
    }
    return OPTIONAL_IS_EMPTY.matches(condition) != invert;
  }
private static boolean isEmptyCheck(PsiExpression condition)