code: public static <T extends Entity> Optional<T> anyEntityOfType(final EntityContainer container, final Class<T> type) {
  	return container.streamEntitiesOfType(type).findAny();
      }
docs: Gets any entity within the container marked with the specified type.
  
  @param container
  Entity container.
  
  @param type
  Entity type.
  
  @return Gets an Optional of the resulting entity or an empty Optional if it was not found.
  
  @see Entity#markAsType(Class)