[JENKINS-18884] Added @Restricted(NoExternalUse.class) to a method for testing purpose.