How can I disable the deprecation warning on the line where it is handled?

I will support both old and new devices, so I'm doing this:

function getPropertyCompat(key as String) as PropertyValueType {
    if (Application has :Properties) {
        return Properties.getValue(key);
    } else {
        return AppBase.getProperty(key);
    }
}

However, I am still getting this warning:

'$.Toybox.Application.AppBase.getProperty' is deprecated.

Naturally, I'd like to disable this warning on this particular line. How can I?