public static boolean anyFieldsWithGettersPresent(List<? extends UsageInfo> classMemberRefs) {
    for (UsageInfo usageInfo : classMemberRefs) {
      if (usageInfo.getElement() instanceof PsiReferenceExpression ref && ref.resolve() instanceof PsiField psiField) {
        PsiMethod getterPrototype = GenerateMembersUtil.generateGetterPrototype(psiField);
        PsiMethod getter = psiField.getContainingClass().findMethodBySignature(getterPrototype, true);
        if (getter != null) return true;
      }
    }

    return false;
  }
public static boolean anyFieldsWithGettersPresent(List<? extends UsageInfo> classMemberRefs)