code: @CheckForNull
      public static <T extends Trigger> T triggerFrom(Item item, Class<T> tClass) {
          if (item instanceof ParameterizedJobMixIn.ParameterizedJob) {
              ParameterizedJobMixIn.ParameterizedJob pJob = (ParameterizedJobMixIn.ParameterizedJob) item;
  
              for (Trigger candidate : pJob.getTriggers().values()) {
                  if (tClass.isInstance(candidate)) {
                      return tClass.cast(candidate);
                  }
              }
          }
          return null;
      }
docs: @param item    job to search trigger in
  @param tClass trigger with class which we want to receive from job
  @param <T>    type of trigger
  
  @return Trigger instance with required class or null
  @since 1.25.0
  TODO use standard method in 1.621+