diff --git a/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java b/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java index a3d776c0936..b2e01511e89 100644 --- a/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java +++ b/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java @@ -200,10 +200,9 @@ public class JetFunctionParameterInfoHandler implements } } if (refExpression != null) { - ResolvedCall call = bindingContext.get(BindingContext.RESOLVED_CALL, refExpression); - if (call != null) { - CallableDescriptor candidateDescriptor = call.getCandidateDescriptor(); - if (candidateDescriptor == functionDescriptor) { + DeclarationDescriptor declarationDescriptor = bindingContext.get(BindingContext.REFERENCE_TARGET, refExpression); + if (declarationDescriptor != null) { + if (declarationDescriptor == functionDescriptor) { color = GREEN_BACKGROUND; } }