Did you know ... Search Documentation:
Predicate goal_classification/2
 goal_classification(+Goal, -Class)[multifile, '/home/swipl/src/swipl-devel/build/home/library/prolog_colour.pl']
Multifile hookable classification for non-local goals.