IDE auto-complete not working for imported version catalogs

(I will open a ticket with JetBrains too but there’s something in this question that you guys could help with)

I created a sample project using Spring Initializr. I’m on 7.4.2 and it’s a build.gradle file.

The auto-complete for libs.* does not work unless I add the following snippet.

//Snippet [1]
buildscript {
	dependencies {
		classpath files(libs.class.superclass.protectionDomain.codeSource.location)

I imported a catalog to test things out. I tried the following. The auto-complete mn.* does not work at all but the build works which includes things like implementation mn.*.

dependencyResolutionManagement {
    repositories {
    versionCatalogs {
        create("mn") {

Is there something I can do, like the above Snippet[1], to make the auto-complete work for imported catalogs?