diff --git a/idea/ide-common/src/org/jetbrains/kotlin/idea/codeInsight/ReferenceVariantsHelper.kt b/idea/ide-common/src/org/jetbrains/kotlin/idea/codeInsight/ReferenceVariantsHelper.kt index 27cc9bdf9df..99dc68cec1c 100644 --- a/idea/ide-common/src/org/jetbrains/kotlin/idea/codeInsight/ReferenceVariantsHelper.kt +++ b/idea/ide-common/src/org/jetbrains/kotlin/idea/codeInsight/ReferenceVariantsHelper.kt @@ -478,8 +478,8 @@ fun ResolutionScope.collectSyntheticStaticMembersAndConstructors( kindFilter: DescriptorKindFilter, nameFilter: (Name) -> Boolean ): List { - val syntheticScopes = resolutionFacade.getFrontendService(SyntheticScopes::class.java).forceEnableSamAdapters() - return (syntheticScopes.collectSyntheticStaticFunctions(this) + syntheticScopes.collectSyntheticConstructors(this)) + val syntheticScopes = resolutionFacade.getFrontendService(SyntheticScopes::class.java) + return (syntheticScopes.forceEnableSamAdapters().collectSyntheticStaticFunctions(this) + syntheticScopes.collectSyntheticConstructors(this)) .filter { kindFilter.accepts(it) && nameFilter(it.name) } }