code: public static List<DependencyInfo> readDependencies(InputStream in) throws IOException {
          try (InputStreamReader inputStreamReader = new InputStreamReader(in, UTF_8);
               BufferedReader br = new BufferedReader(inputStreamReader);
               JsonReader reader = new JsonReader(br)) {
              return getDependencies(reader);
          } catch (IOException ex) {
              logger.error("Failed to read dependencies: {}", ex.getMessage());
          }
          return null;
      }
docs: /* --- Static methods ---