@SuppressWarnings("unchecked")
	protected <T> void eachChild(@Nonnull Class<T> targetType, @Nonnull Consumer<T> action) {
		for (Navigable child : children) {
			if (targetType.isAssignableFrom(child.getClass())) {
				action.accept((T) child);
			}
		}
	}
@param targetType
		Type of children to filter with.
@param action
		Action to run on children of the target type.
@param <T>
		Target type.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/AbstractContentPane.java