SourceFormatter - improve logic for fixing copyright
LPS-33722 PACL - centralize PortalHookPermission checking
LPS-33722 PACL - apply checks