Patches for Performance CoPilot checker [sf#778194] [#399]