for (CharSequence seq : candidates)
{
boolean processed = false;
if (commandHolder.getState() != null)
{
CommandMetadata command = commandHolder.getState().getCommand();
if ((command != null) && seq.toString().startsWith("--"))
{
String str = seq.toString().trim();
if (str.startsWith("--"))
{
str = str.substring(2);
}
if (command.hasOption(str) && command.getNamedOption(str).isRequired())
{
seq = shell.renderColor(ShellColor.BLUE, seq.toString());
colorizedCandidates.add(seq);
processed = true;
}