code: private String formatElement(final StackTraceElement element, final Map<String, String> classMap) {
          StringBuilder buf = new StringBuilder("\tat ");
          buf.append(element);
          String className = element.getClassName();
          String classDetails = classMap.get(className);
          if (classDetails == null) {
              try {
                  Class<?> cls = findClass(className);
                  classDetails = getClassDetail(cls);
                  classMap.put(className, classDetails);
              } catch (Throwable th) {
                  // Ignore
              }
          }
          if (classDetails != null) {
              buf.append(classDetails);
          }
          return buf.toString();
      }
docs: Format one element from stack trace.
  @param element element, may not be null.
  @param classMap map of class name to location.
  @return string representation of element.