code: private Map<String, List<String>> getGroupToDirectDependencies(String paketDependenciesPath) {
          Map<String, List<String>> result = new HashMap<>();
          try (BufferedReader bufferedReader = new BufferedReader(new FileReader(paketDependenciesPath))) {
              String line;
              String groupName = MAIN;
              // the first group of dependencies named 'Main' even though is not written in the paket.dependencies file
              List<String> groupDependencies = new LinkedList<>();
              while ((line = bufferedReader.readLine()) != null) {
                  String processedLine = line.toLowerCase().trim();
                  if (processedLine.startsWith(NUGET)) {
                      // nuget dependency example: nuget xunit >= 1.1.1
                      String nugetDependencyName = line.substring(NUGET.length() + 1).trim();
                      int indexOfSpace = nugetDependencyName.indexOf(Constants.WHITESPACE);
                      if (indexOfSpace < 0) {
                          indexOfSpace = nugetDependencyName.length();
                      }
                      groupDependencies.add(nugetDependencyName.substring(0, indexOfSpace));
                  }
                  // starting to parse new nuget dependencies group
                  if (processedLine.startsWith(GROUP)) {
                      if (!groupDependencies.isEmpty()) {
                          result.put(groupName, groupDependencies);
                      }
                      groupName = line.substring(GROUP.length() + 1);
                      groupDependencies = new LinkedList<>();
                  }
              }
              // get the last group of dependencies
              if (!groupDependencies.isEmpty()) {
                  result.put(groupName, groupDependencies);
              }
          } catch (IOException e) {
              logger.warn("Could not find paket.dependencies file in {}.", paketDependenciesPath);
          }
          return result;
      }
docs: /* --- Private methods ---