LookupElement (@NotNull String caseRuleName, TailType tailType, @Nullable PsiSwitchBlock switchBlock) { final String prefix = "case "; final LookupElement lookupElement = LookupElementBuilder .create(prefix + caseRuleName) .bold() .withPresentableText(prefix) .withTailText(caseRuleName) .withLookupString(caseRuleName); JavaCompletionContributor.IndentingDecorator decorator = new JavaCompletionContributor.IndentingDecorator(TailTypeDecorator.withTail(lookupElement, tailType)); return prioritizeForRule(decorator, switchBlock); }