public static @NotNull List<PsiClassType> getThrownExceptions(PsiElement @NotNull [] elements) {
    List<PsiClassType> array = new ArrayList<>();
    for (PsiElement element : elements) {
      List<PsiClassType> exceptions = getThrownExceptions(element);
      addExceptions(array, exceptions);
    }

    return array;
  }
public static @NotNull List<PsiClassType> getThrownExceptions(PsiElement @NotNull [] elements)