private static boolean hasUsagesInGeneratedCode(UsageInfo @NotNull [] usages, @NotNull Project project) {
    for (UsageInfo usage : usages) {
      VirtualFile file = usage.getVirtualFile();
      if (file != null && GeneratedSourcesFilter.isGeneratedSourceByAnyFilter(file, project)) {
        return true;
      }
    }
    return false;
  }
private static boolean hasUsagesInGeneratedCode(UsageInfo @NotNull [] usages, @NotNull Project project)