private static boolean hasNonCodeUsages(UsageInfo @NotNull [] usages) {
    for (UsageInfo usage : usages) {
      if (usage.isNonCodeUsage) return true;
    }
    return false;
  }
private static boolean hasNonCodeUsages(UsageInfo @NotNull [] usages)