StackTraceExpander { @VisibleForTesting static int getElidedFrameCount(@NotNull String line) { Matcher matcher = ELIDED_LINE_PATTERN.matcher(line); return matcher.matches() ? StringUtil.parseInt(matcher.group(1), -1) : -1; } StackTraceExpander(@NotNull String stackTraceLinePrefix, @NotNull String stackTraceCauseLinePrefix); void reset(); static boolean wasLineExpanded(@NotNull String line); @NotNull List<String> process(@NotNull String line);  }
@Test public void testElidedCount() { Assert.assertEquals(3, StackTraceExpander.getElidedFrameCount("... 3 more")); Assert.assertEquals(-1, StackTraceExpander.getElidedFrameCount("... more follow")); }