private static boolean isExceptionHandled(Set<PsiType> exceptionsHandled, @NotNull PsiType thrownType) {
      return exceptionsHandled.contains(thrownType) ||
             exceptionsHandled.stream().anyMatch(exceptionHandled -> exceptionHandled.isAssignableFrom(thrownType));
    }
private static boolean isExceptionHandled(Set<PsiType> exceptionsHandled, @NotNull PsiType thrownType)