How would the Groovy plugin DSL look after removing `GroovySourceSet`

I saw that GroovySourceSet was deprecated with

How will the DSL look like once this class is removed in Gradle 8? Will it still be possible to do the following:

sourceSets {
    main {
        groovy {
            srcDir "some_dir"
            srcDir "some_other_dir"
        }
    }
}

As far as I understood, the { srcDir ... } was handled by the GroovySourceSet.groovy(@Nullable Closure configureClosure) method (added via a convention), which “converted” the script to something like:

sourceSets {
    main {
        groovy.srcDir "some_dir"
        groovy.srcDir "some_other_dir"
    }
}

Will the first form with the closure still be possible? Is there some other hidden machinery that makes it possible or will there be any?