code: def findall_with_pred(predicate, prs):
      
      return sorted((p for p in prs if predicate(p)),
                    key=operator.methodcaller("priority"), reverse=True)
docs: :param predicate: any callable to filter results
      :param prs: A list of :class:`anyconfig.models.processor.Processor` classes
      :return: A list of appropriate processor classes or []