String (String unscrambledTrace) { @SuppressWarnings("IOResourceOpenedButNotSafelyClosed") BufferedReader reader = new BufferedReader(new StringReader(unscrambledTrace)); for (int i = 0; i < 3; i++) { try { String line = reader.readLine(); if (line == null) return null; String name = getExceptionAbbreviation(line); if (name != null) return name; } catch (IOException e) { return null; } } return null; }