This method of the UIAccessRequest Class determines whether top-level windows need warning banners.
public boolean isWarningBannerNeeded();
Returns true if top-level windows need warning banners; otherwise, returns false.