LookupElement (@NotNull String name, @NotNull PsiFile settingsAnchor, boolean addEquals) { final String suffix; if (addEquals) { if (PythonCodeStyleService.getInstance().isSpaceAroundEqInKeywordArgument(settingsAnchor)) { suffix = " = "; } else { suffix = "="; } } else { suffix = ""; } LookupElementBuilder lookupElementBuilder = LookupElementBuilder.create(name + suffix).withIcon( IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Parameter)); lookupElementBuilder = lookupElementBuilder.withInsertHandler(OverwriteEqualsInsertHandler.INSTANCE); lookupElementBuilder.putUserData(PyCompletionMlElementInfo.Companion.getKey(), PyCompletionMlElementKind.NAMED_ARG.asInfo()); return PrioritizedLookupElement.withGrouping(lookupElementBuilder, 1); }