After latest lsp update, Imenu provides too deep/detailed leafs.
E.g. for the following Scala class I expect b and b2 as Imenu contents (classes and functions list, not function contents), but c and c2 actually appears.
class A {
def b: Unit = {
val c: Int = 0
}
def b2: Unit = {
val c2: Int = 0
}
}

How can I fix it?