static @NotNull UnhandledExceptions from(@Nullable Collection<PsiClassType> exceptions, boolean hasUnresolvedCalls) {
    if (exceptions == null || exceptions.isEmpty()) {
      return hasUnresolvedCalls ? UNKNOWN : EMPTY;
    }
    return new UnhandledExceptions(exceptions instanceof Set ? (Set<PsiClassType>)exceptions :
                                   new HashSet<>(exceptions), hasUnresolvedCalls);
  }
static @NotNull UnhandledExceptions from(@Nullable Collection<PsiClassType> exceptions, boolean hasUnresolvedCalls)