code: public List<Descriptor<ViewJobFilter>> getJobFiltersDescriptors() {
          StaplerRequest request = Stapler.getCurrentRequest();
          if (request != null) {
              View view = request.findAncestorObject(clazz);
              return view == null ? DescriptorVisibilityFilter.applyType(clazz, ViewJobFilter.all())
                      : DescriptorVisibilityFilter.apply(view, ViewJobFilter.all());
          }
          return ViewJobFilter.all();
      }
docs: Possible {@link ViewJobFilter} types that can be used with this view.