@NotNull
  Collection<PsiMember> filterMembers(@NotNull PsiClass psiClass, PsiAnnotation psiAnnotation) {
    final Collection<PsiMember> result = new ArrayList<>();

    final boolean onlyExplicitlyIncluded = isOnlyExplicitlyIncluded(psiAnnotation);

    Collection<? extends PsiMember> psiMembers;
    if (psiClass.isRecord()) {
      psiMembers = List.of(psiClass.getRecordComponents());
    }
    else {
      psiMembers = PsiClassUtil.collectClassFieldsIntern(psiClass);
    }

    for (PsiMember psiMember : psiMembers) {
      if (shouldUseField(psiMember, onlyExplicitlyIncluded)) {
        result.add(psiMember);
      }
    }
    return result;
  }
@NotNull
  Collection<PsiMember> filterMembers(@NotNull PsiClass psiClass, PsiAnnotation psiAnnotation)