Invalid @Experimental annotation generated in 2025.1

In a generated psi file, after updating from 2024.3 to 2025.1 there is a new constructor generated which has an @Experimental annotation on a parameter, something which is apparently not supported.

The new contructor is

public class LatexMagicCommentImpl extends StubBasedPsiElementBase<LatexMagicCommentStub> implements LatexMagicComment {
// (...)
public LatexMagicCommentImpl(@Experimental @NotNull LatexMagicCommentStub stub, @NotNull IElementType type) {
    super(stub, type);
  }
// (...)
}

Error: error: annotation interface not applicable to this kind of declaration

Is this an issue with grammar-kit, or how can I fix this?

Build: Update to 2025.1 · Hannah-Sten/TeXiFy-IDEA@a2962cf · GitHub
Source: TeXiFy-IDEA/src/nl/hannahsten/texifyidea/grammar/Latex.bnf at 251 · Hannah-Sten/TeXiFy-IDEA · GitHub

It looks like StubBasedPsiElementBase has a similar constructor with an experimental annotation.

Posted at Invalid @Experimental annotation generated in 2025.1 · Issue #399 · JetBrains/Grammar-Kit · GitHub