void (@NotNull StringBuilder sb, @Nullable Component root, @NotNull Component component) { sb.append("\n "); for (Component p = component; root != p && p != null; p = p.getParent()) sb.append(" "); sb.append(component.getClass().getName()); }