Issue #3164435 by evgeny.chernyavskiy: Add ability to exclude path patterns when specifying visibility