[PSI] Don't calculate ClassIds for local classes in call elements

- The fix uses relevant logic from  `getNonLocalContainingDeclaration`.
- The annotation entry case is covered by `KtCallElement` because
  `KtAnnotationEntry` is a subtype of it.
- KT-66038 is fixed by this because the static declaration provider only
  indexes non-local classes.

^KT-66038 fixed
This commit is contained in:
Marco Pennekamp
2024-02-22 18:17:03 +01:00
committed by Space Team
parent d52860b835
commit ea2bb32bc0
3 changed files with 10 additions and 4 deletions
@@ -1,3 +1,3 @@
// KT-24323
@Retention(AnnotationRetention.RUNTIME
annotation /* ClassId: /Validation */class Validation()
annotation /* ClassId: null */class Validation()