Use a system property to specify whether this check should be executed. We will update the presubmit test script to run this check only during foss-pr.