CompletionType () { String completionTypeArg = getArgument(0); switch (completionTypeArg) { case "SMART" -> { LOG.info(String.format("'%s' was passed as argument, so SMART completion will be used", completionTypeArg)); return CompletionType.SMART; } //case "BASIC", default -> { LOG.info(String.format("'%s' was passed as argument, so BASIC completion will be used", completionTypeArg)); return CompletionType.BASIC; } } }