code: public static @CheckForNull <T extends Trigger<?>> T getTrigger(Job<?,?> job, Class<T> clazz) {
          if (!(job instanceof ParameterizedJob)) {
              return null;
          }
          for (Trigger<?> t : ((ParameterizedJob<?, ?>) job).getTriggers().values()) {
              if (clazz.isInstance(t)) {
                  return clazz.cast(t);
              }
          }
          return null;
      }
docs: Checks for the existence of a specific trigger on a job.
  @param <T> a trigger type
  @param job a job
  @param clazz the type of the trigger
  @return a configured trigger of the requested type, or null if there is none such, or {@code job} is not a {@link ParameterizedJob}
  @since 1.621