public static boolean isFieldUsed(@NotNull Project project,
                                    @NotNull PsiFile containingFile,
                                    @NotNull PsiField field,
                                    @NotNull GlobalUsageHelper helper) {
    if (helper.isLocallyUsed(field)) {
      return true;
    }
    if (field instanceof PsiEnumConstant enumConstant && isEnumMethodUsed(project, containingFile, enumConstant, helper)) {
      return true;
    }
    return !weAreSureThereAreNoUsages(project, containingFile, field, helper);
  }
public static boolean isFieldUsed(@NotNull Project project,
                                    @NotNull PsiFile containingFile,
                                    @NotNull PsiField field,
                                    @NotNull GlobalUsageHelper helper)