private static List<LayoutDataInfo> getLayoutDataList(List<ObjectInfo> objects) {
ArrayList<LayoutDataInfo> layoutDataList = Lists.newArrayList();
for (ObjectInfo object : objects) {
if (object instanceof WidgetInfo) {
WidgetInfo widget = (WidgetInfo) object;
LayoutDataInfo layoutData = LayoutInfo.getLayoutData(widget);
if (layoutData != null) {
layoutDataList.add(layoutData);
}
}
}