String (@NotNull String commandLine) { String executable = commandLine.trim(); List<String> words = StringUtil.splitHonorQuotes(executable, ' '); String execName; List<String> args; if (words.isEmpty()) { execName = executable; args = Collections.emptyList(); } else { execName = words.get(0); args = words.subList(1, words.size()); } boolean verbose = Logger.getInstance(CommandLineUtil.class).isDebugEnabled(); return verbose ? StringUtil.shortenPathWithEllipsis(execName + " " + String.join(" ", args), 250) : new File(StringUtil.unquoteString(execName)).getName(); }