boolean (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { if (!CodeInsightSettings.getInstance().SHOW_PARAMETER_NAME_HINTS_ON_COMPLETION || !ParameterInfoControllerBase.existsForEditor(editor)) return false; Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null) return false; PsiElement exprList = getExpressionList(editor, caret.getOffset(), project); if (exprList == null) return false; int lbraceOffset = exprList.getTextRange().getStartOffset(); ParameterInfoControllerBase controller = ParameterInfoControllerBase.findControllerAtOffset(editor, lbraceOffset); return controller != null && controller.isHintShown(false); }