package com.codeborne.selenide.commands;

import com.codeborne.selenide.Condition;

import java.util.ArrayList;
import java.util.List;

import static java.util.Arrays.asList;

public class Util {
//   TODO is it used?
//  static WebElement assertIsVisible(WebElement element) {
//    if (!element.isDisplayed())
//    return checkCondition("be ", null, visible, false);
//  }

  static List<Condition> argsToConditions(Object[] args) {
    List<Condition> conditions = new ArrayList<>(args.length);
    for (Object arg : args) {
      if (arg instanceof Condition)
        conditions.add((Condition) arg);
      else if (arg instanceof Condition[])
        conditions.addAll(asList((Condition[]) arg));
      else if (!(arg instanceof String || arg instanceof Long))
        throw new IllegalArgumentException("Unknown parameter: " + arg);
    }
    return conditions;
  }
}

@@ -173,15 +173,8 @@
 t;%0A%0A
-public 
 clas
@@ -186,189 +186,8 @@
 l %7B%0A
-//   TODO is it used?%0A//  static WebElement assertIsVisible(WebElement element) %7B%0A//    if (!element.isDisplayed())%0A//    return checkCondition(%22be %22, null, visible, false);%0A//  %7D%0A%0A
   st

remove unused method