public static @Nullable Boolean evaluateCondition(@Nullable PsiExpression condition) {
    if (condition == null) return null;
    CommonDataflow.DataflowResult result = CommonDataflow.getDataflowResult(condition);
    if (result == null) return null;
    return tryCast(ContainerUtil.getOnlyItem(result.getExpressionValues(condition)), Boolean.class);
  }
public static @Nullable Boolean evaluateCondition(@Nullable PsiExpression condition)