code: public static <T> T getFirstNotNullValue(final Collection<T> collection) {
  
          if (isNotEmpty(collection)) {
              for (T element : collection) {
                  if (element != null) {
                      return element;
                  }
              }
          }
          return null;
      }
docs: Returns the first not null element if the collection is not null and have
  not null value, else return null.
  
  @param collection
  the collection to be handled.
  @return the first not null element if the collection is not null and have
  not null value, else null.