private static boolean isNonNlsCall(UResolvable qualifier, Set<? super PsiModifierListOwner> nonNlsTargets) {
    final PsiElement resolved = qualifier.resolve();
    if (resolved instanceof PsiModifierListOwner modifierListOwner) {
      if (annotatedAsNonNls(modifierListOwner)) {
        return true;
      }
      nonNlsTargets.add(modifierListOwner);
    }
    ULocalVariable uVar = UastContextKt.toUElement(resolved, ULocalVariable.class);
    if (uVar != null) {
      if (NlsInfo.fromUVariable(uVar).getNlsStatus() == ThreeState.NO) return true;
      UExpression initializer = uVar.getUastInitializer();
      if (initializer instanceof UResolvable) {
        PsiModifierListOwner method = ObjectUtils.tryCast(((UResolvable)initializer).resolve(), PsiModifierListOwner.class);
        if (method != null) {
          if (annotatedAsNonNls(method)) return true;
          nonNlsTargets.add(method);
        }
      }
    }
    if (qualifier instanceof UQualifiedReferenceExpression) {
      UExpression receiver = UastUtils.skipParenthesizedExprDown(((UQualifiedReferenceExpression)qualifier).getReceiver());
      if (receiver instanceof UResolvable) {
        return isNonNlsCall((UResolvable)receiver, nonNlsTargets);
      }
    }
    return false;
  }
private static boolean isNonNlsCall(UResolvable qualifier, Set<? super PsiModifierListOwner> nonNlsTargets)