def METHOD_NAME(self):
    files = self.get_plugins()
    excludes = (
        # Special cases, handling Qt imports in unusual ways.
        'backlink.py',  # Qt code is optional, disabled with module-level guard.
        'leoscreen.py',  # Qt imports are optional.
        'nodetags.py',  # #2031: Qt imports are optional.
        'pyplot_backend.py',  # Not a real plugin.
    )
    pattern = re.compile(r'\b(QtCore|QtGui|QtWidgets)\b')  # Don't search for Qt.
    for fn in files:
        if g.shortFileName(fn) in excludes:
            continue
        with open(fn, 'r') as f:
            s = f.read()
        if not re.search(pattern, s):
            continue
        self.assertTrue(re.search(r"g\.assertUi\(['\"]qt['\"]\)", s), msg=fn)