boolean (String input, SearchEverywhereCommandInfo command) { if (input == null) { return false; } return extractFirstWord(input) .map(firstWord -> command.getCommandWithPrefix().startsWith(firstWord)) .orElse(false); }