@Override
  boolean validateAnnotationOnRightType(@NotNull PsiClass psiClass, @NotNull ProblemSink builder) {
    if (isNotSupported(psiClass) || psiClass.isRecord()) {
      builder.addErrorMessage("inspection.message.superbuilder.can.be.used.on.classes.only");
      return false;
    }
    if(!psiClass.hasModifierProperty(PsiModifier.STATIC) && psiClass.getParent() instanceof PsiClass) {
      builder.addErrorMessage("inspection.message.superbuilder.can.be.used.on.static.inner.classes.only");
      return false;
    }
    return true;
  }
@Override
  boolean validateAnnotationOnRightType(@NotNull PsiClass psiClass, @NotNull ProblemSink builder)