static @NotNull UnhandledExceptions collectUnhandledExceptions(@NotNull PsiTryStatement statement) {
    UnhandledExceptions thrownTypes = UnhandledExceptions.EMPTY;

    PsiCodeBlock tryBlock = statement.getTryBlock();
    if (tryBlock != null) {
      thrownTypes = thrownTypes.merge(UnhandledExceptions.collect(tryBlock));
    }

    PsiResourceList resources = statement.getResourceList();
    if (resources != null) {
      thrownTypes = thrownTypes.merge(UnhandledExceptions.collect(resources));
    }

    return thrownTypes;
  }
static @NotNull UnhandledExceptions collectUnhandledExceptions(@NotNull PsiTryStatement statement)