Component (@Nullable String pattern, boolean isSelected, boolean hasFocus) { String command = getCommand(); JPanel component = (JPanel)super.createComponent(pattern, isSelected, hasFocus); String toComplete = notNullize(substringAfterLast(command, " ")); if (toComplete.startsWith("-")) { Option option = MavenCommandLineOptions.findOption(toComplete); if (option != null) { String description = option.getDescription(); if (description != null) { SimpleColoredComponent descriptionComponent = new SimpleColoredComponent(); //noinspection HardCodedStringLiteral descriptionComponent.append(" " + shortenTextWithEllipsis(description, 200, 0), SimpleTextAttributes.GRAYED_ITALIC_ATTRIBUTES); component.add(descriptionComponent, BorderLayout.EAST); } } } return component; }