code: public static <T> T getEventFiringObject(T t, WebDriver driver, Listener ... listeners) {
          return getEventFiringObject(t, driver, Arrays.asList(listeners));
      }
docs: This method makes an event firing object.
  
  @param t an original {@link Object} that is
  supposed to be listenable
  @param driver an instance of {@link org.openqa.selenium.WebDriver}
  @param listeners is an array of {@link io.appium.java_client.events.api.Listener} that
  is supposed to be used for the event firing
  
  @param <T> T
  @return an instance of {@link org.openqa.selenium.WebDriver} that fires events