@NotNull
  private static VcsException createException(boolean isWarning, @Nls @Nullable String @NotNull ... messages) {
    Collection<String> notEmptyMessages = ContainerUtil.mapNotNull(messages, message -> StringUtil.nullize(message, true));

    return new VcsException(notEmptyMessages).setIsWarning(isWarning);
  }
@NotNull
  private static VcsException createException(boolean isWarning, @Nls @Nullable String @NotNull ... messages)