code: public static <T> T find(T[] self, @ClosureParams(FirstParam.Component.class) Closure condition) {
          BooleanClosureWrapper bcw = new BooleanClosureWrapper(condition);
          for (T element : self) {
              if (bcw.call(element)) {
                  return element;
              }
          }
          return null;
      }
docs: Finds the first element in the array that matches the given closure condition.
  Example:
  <pre class="groovyTestCase">
  def list = [1,2,3] as Integer[]
  assert 2 == list.find { it {@code >} 1 }
  assert null == list.find { it {@code >} 5 }
  </pre>
  
  @param self      an Array
  @param condition a closure condition
  @return the first element from the array that matches the condition or null if no element matches
  @since 2.0