private static void processLine(Pattern pattern, PsiElement child, Kind kind, List<ReturnItem> ranges) {
        String text = child.getText();
        Matcher matcher = pattern.matcher(text);
        while (matcher.find()) {
          int start = matcher.start(1);
          int end = matcher.end(1);
          ranges.add(new ReturnItem(kind, TextRange.create(start, end).shiftRight(child.getStartOffsetInParent())));
        }
      }
private static void processLine(Pattern pattern, PsiElement child, Kind kind, List<ReturnItem> ranges)