void (@NotNull final PsiExpressionList element, @NotNull final CreateParameterInfoContext context) { int offset = element.getTextRange().getStartOffset(); if (CodeInsightSettings.getInstance().SHOW_PARAMETER_NAME_HINTS_ON_COMPLETION) { ParameterInfoControllerBase controller = ParameterInfoControllerBase.findControllerAtOffset(context.getEditor(), offset); PsiElement parent = element.getParent(); if (parent instanceof PsiCall && controller != null && controller.isHintShown(false)) { Object highlighted = controller.getHighlighted(); Object[] objects = controller.getObjects(); if (objects != null && objects.length > 0 && (highlighted != null || objects.length == 1)) { PsiCall methodCall = (PsiCall)parent; JavaMethodCallElement.setCompletionModeIfNotSet(methodCall, controller); PsiMethod targetMethod = getMethodFromCandidate(highlighted == null ? objects[0] : highlighted); CompletionMemory.registerChosenMethod(targetMethod, methodCall); controller.setPreservedOnHintHidden(true); ParameterHintsPass.asyncUpdate(methodCall, context.getEditor()); } } } context.showHint(element, offset, this); }