public final int indexOf(@NotNull Condition<? super E> condition) {
    int index = 0;
    for (E e : this) {
      if (condition.value(e)) {
        return index;
      }
      index++;
    }
    return -1;
  }
public final int indexOf(@NotNull Condition<? super E> condition)