Concurrent build execution conditionally in Jenkins pipeline library code

We have requirement where we need to enable concurrent build for specific repo and disable for other repository, I tried to add condition [if loop] in options block however looks like condition block is not allowed in option block.

I tried to add condition in stage on pipeline, but still not able to override disableConcurrentBuild() option.

Can some one please help here.