public static boolean hasReadOnlyUsages(UsageInfo @NotNull [] usages) {
    for (UsageInfo usage : usages) {
      if (!usage.isWritable()) return true;
    }
    return false;
  }
public static boolean hasReadOnlyUsages(UsageInfo @NotNull [] usages)