code: void printStackTrace(StackTraceElement[] stes) {
          for (StackTraceElement ste : stes) {
              StringBuilder sb = new StringBuilder();
              String cn = ste.getClassName();
              if (!cn.isEmpty()) {
                  int dot = cn.lastIndexOf('.');
                  if (dot > 0) {
                      sb.append(cn.substring(dot + 1));
                  } else {
                      sb.append(cn);
                  }
                  sb.append(".");
              }
              if (!ste.getMethodName().isEmpty()) {
                  sb.append(ste.getMethodName());
                  sb.append(" ");
              }
              String fileName = ste.getFileName();
              int lineNumber = ste.getLineNumber();
              String loc = ste.isNativeMethod()
                      ? getResourceString("jshell.msg.native.method")
                      : fileName == null
                              ? getResourceString("jshell.msg.unknown.source")
                              : lineNumber >= 0
                                      ? fileName + ":" + lineNumber
                                      : fileName;
              hard("      at %s(%s)", sb, loc);
  
          }
      }
docs: where