Refactor getFileIgnorer()
to reduce duplication
#5794
Merged
getFileIgnorer()
to reduce duplication
#5794