in util/base/src/main/java/jetbrains/jetpad/base/ThrowableHandlers.java [140:157]
private static boolean isClient(Throwable t) {
boolean isClient = false;
StackTraceElement[] stackTrace = t.getStackTrace();
for (int i = stackTrace.length - 1; !isClient && i >= 0; i--) {
String className = stackTrace[i].getClassName();
if (className.startsWith("com.google.gwt.core.client") || "Unknown".equals(className)) {
isClient = true;
}
}
if (!isClient && t.getCause() != null) {
isClient = isClient(t.getCause());
}
return isClient;
}