private static boolean needsTryCatchBlock(@NotNull PsiElement anchor) {
    PsiClassType ioExceptionType = TypeUtils.getType("java.io.IOException", anchor);
    return !ExceptionUtil.isHandled(ioExceptionType, anchor);
  }
private static boolean needsTryCatchBlock(@NotNull PsiElement anchor)