String[] (@NotNull VcsException exception) { String[] messages = exception.getMessages(); if (messages.length == 0) messages = new String[]{VcsBundle.message("exception.text.unknown.error")}; final List<String> list = new ArrayList<>(); for (String message : messages) { list.addAll(StringUtil.split(StringUtil.convertLineSeparators(message), "\n")); } return ArrayUtilRt.toStringArray(list); }