private static void addMessages(
    final int messageCategory,
    final @NotNull List<? extends Exception> exceptions,
    @NotNull ErrorViewPanel errorTreeView,
    final @Nullable VirtualFile file,
    final @NotNull String defaultMessage) {
    for (final Exception exception : exceptions) {
      String message = exception.getMessage();

      String[] messages = StringUtil.isNotEmpty(message) ? StringUtil.splitByLines(message) : ArrayUtilRt.EMPTY_STRING_ARRAY;
      if (messages.length == 0) {
        messages = new String[]{defaultMessage};
      }
      errorTreeView.addMessage(messageCategory, messages, file, -1, -1, null);
    }
  }
private static void addMessages(
    final int messageCategory,
    final @NotNull List<? extends Exception> exceptions,
    @NotNull ErrorViewPanel errorTreeView,
    final @Nullable VirtualFile file,
    final @NotNull String defaultMessage)