code: @GwtIncompatible("incompatible method")
      static String[] getStackFrames(final String stackTrace) {
          final String linebreak = System.lineSeparator();
          final StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);
          final List<String> list = new ArrayList<>();
          while (frames.hasMoreTokens()) {
              list.add(frames.nextToken());
          }
          return list.toArray(new String[list.size()]);
      }
docs: <p>Returns an array where each element is a line from the argument.</p>
  
  <p>The end of line is determined by the value of {@link System#lineSeparator()}.</p>
  
  @param stackTrace  a stack trace String
  @return an array where each element is a line from the argument