static boolean hasQualifiedNameInDumbOrIncompleteMode(PsiAnnotation annotation, @NotNull String fqn) {
    PsiJavaCodeReferenceElement referenceElement = annotation.getNameReferenceElement();
    if (referenceElement == null) return false;
    String annotationReferenceName = referenceElement.getReferenceName();
    if (annotationReferenceName == null) return false;
    if (annotationReferenceName.equals(fqn) || ("java.lang." + annotationReferenceName).equals(fqn)) return true;
    String referenceElementText = referenceElement.getText();
    if (!StringUtil.isShortNameOf(fqn, annotationReferenceName)) return false;
    if (referenceElementText != null && referenceElementText.equals(fqn)) return true;
    PsiFile containingFile = annotation.getContainingFile();
    if (!(containingFile instanceof PsiJavaFile javaFile)) {
      return false;
    }
    String packageName = StringUtil.getPackageName(fqn);
    PsiImportList importList = javaFile.getImportList();
    if (importList == null) return false;
    int indexMayByOuterClass = fqn.length() - annotationReferenceName.length() - 1;
    String mayBeOuterClass = indexMayByOuterClass > 0 ? fqn.substring(0, indexMayByOuterClass) : null;
    return importList.findOnDemandImportStatement(packageName) != null ||
           importList.findSingleClassImportStatement(fqn) != null ||
           (mayBeOuterClass != null && importList.findSingleClassImportStatement(mayBeOuterClass) != null);
  }
static boolean hasQualifiedNameInDumbOrIncompleteMode(PsiAnnotation annotation, @NotNull String fqn)