How to detect 'legacy' license using UPM API

Hi All,

According to DC compatibility program ‘legacy’ server licenses will stop working after its maintenance expires (under UPM 3.0).

Is there a way to detect such licenses using Jira UPM API?
For example:

public boolean isLegacy(PliginLicense lic) {
return lic.getError() == LicenseError.TYPE_MISMATCH && !lic.isDataCenter() && …;
}