VcsException (boolean isWarning, @Nls @Nullable String @NotNull ... messages) { Collection<String> notEmptyMessages = ContainerUtil.mapNotNull(messages, message -> StringUtil.nullize(message, true)); return new VcsException(notEmptyMessages).setIsWarning(isWarning); }