@NotNull
  static List<UsageInfo> findConflicts(@NotNull RecordCandidate recordCandidate) {
    List<UsageInfo> result = new SmartList<>();
    for (var entry : recordCandidate.getFieldAccessors().entrySet()) {
      PsiField psiField = entry.getKey();
      FieldAccessorCandidate fieldAccessorCandidate = entry.getValue();
      if (fieldAccessorCandidate == null) {
        if (firstHasWeakerAccess(recordCandidate.getPsiClass(), psiField)) {
          result.add(new BrokenEncapsulationUsageInfo(psiField, JavaRefactoringBundle
            .message("convert.to.record.accessor.more.accessible",
                     StringUtil.capitalize(RefactoringUIUtil.getDescription(psiField, false)),
                     VisibilityUtil.getVisibilityStringToDisplay(psiField), 
                     VisibilityUtil.toPresentableText(PsiModifier.PUBLIC))));
        }
      }
      else {
        PsiMethod accessor = fieldAccessorCandidate.getAccessor();
        if (firstHasWeakerAccess(recordCandidate.getPsiClass(), accessor)) {
          result.add(new BrokenEncapsulationUsageInfo(accessor, JavaRefactoringBundle
            .message("convert.to.record.accessor.more.accessible",
                     StringUtil.capitalize(RefactoringUIUtil.getDescription(accessor, false)),
                     VisibilityUtil.getVisibilityStringToDisplay(accessor),
                     VisibilityUtil.toPresentableText(PsiModifier.PUBLIC))));
        }
      }
    }
    PsiMethod canonicalCtor = recordCandidate.getCanonicalConstructor();
    if (canonicalCtor != null && firstHasWeakerAccess(recordCandidate.getPsiClass(), canonicalCtor)) {
      result.add(new BrokenEncapsulationUsageInfo(canonicalCtor, JavaRefactoringBundle
        .message("convert.to.record.ctor.more.accessible",
                 StringUtil.capitalize(RefactoringUIUtil.getDescription(canonicalCtor, false)),
                 VisibilityUtil.getVisibilityStringToDisplay(canonicalCtor),
                 VisibilityUtil.getVisibilityStringToDisplay(recordCandidate.getPsiClass()))));
    }
    return result;
  }
@NotNull
  static List<UsageInfo> findConflicts(@NotNull RecordCandidate recordCandidate)