Source:
<code>private Object[] createChildren(Object element) { if (element instanceof MApplication) { List<MPartDescriptor> descriptors = ((MApplication) element).getDescriptors(); Set<String> categoryTags = new HashSet<String>(); Set<MPartDescriptor> visibleViews = new HashSet<MPartDescriptor>(); for (MPartDescriptor descriptor : descriptors) { if (isFilteredByActivity(descriptor.getElementId())) { continue; } List<String> tags = descriptor.getTags(); String category = null; boolean isView = false; for (String tag : tags) { if (tag.equals("View")) isView = true; else if (tag.startsWith(CATEGORY_TAG)) { category = tag.substring(CATEGORY_TAG_LENGTH); } } if (isView) { if (category != null) { categoryTags.add(category); } else { visibleViews.add(descriptor); } } } Set<Object> combinedTopElements = new HashSet<Object>(); combinedTopElements.addAll(categoryTags); combinedTopElements.addAll(visibleViews); <START> return combinedTopElements.toArray(); <END> } else if (element instanceof String) { List<MPartDescriptor> descriptors = application.getDescriptors(); Set<MPartDescriptor> categoryDescriptors = new HashSet<MPartDescriptor>(); for (MPartDescriptor descriptor : descriptors) { if (isFilteredByActivity(descriptor.getElementId())) { continue; } List<String> tags = descriptor.getTags(); for (String tag : tags) { if (!tag.startsWith(CATEGORY_TAG)) continue; String categoryTag = tag.substring(CATEGORY_TAG_LENGTH); if (element.equals(categoryTag)) categoryDescriptors.add(descriptor); } } return categoryDescriptors.toArray(); } return new Object[0]; }</code><technical_language>remove Intro view</technical_language>

Target:
private Object[] createChildren(Object element) { if (element instanceof MApplication) { List<MPartDescriptor> descriptors = ((MApplication) element).getDescriptors(); Set<String> categoryTags = new HashSet<String>(); Set<MPartDescriptor> visibleViews = new HashSet<MPartDescriptor>(); for (MPartDescriptor descriptor : descriptors) { if (isFilteredByActivity(descriptor.getElementId())) { continue; } List<String> tags = descriptor.getTags(); String category = null; boolean isView = false; for (String tag : tags) { if (tag.equals("View")) isView = true; else if (tag.startsWith(CATEGORY_TAG)) { category = tag.substring(CATEGORY_TAG_LENGTH); } } if (isView) { if (category != null) { categoryTags.add(category); } else { visibleViews.add(descriptor); } } } Set<Object> combinedTopElements = new HashSet<Object>(); combinedTopElements.addAll(categoryTags); combinedTopElements.addAll(visibleViews); return combinedTopElements.toArray(); } else if (element instanceof String) { List<MPartDescriptor> descriptors = application.getDescriptors(); Set<MPartDescriptor> categoryDescriptors = new HashSet<MPartDescriptor>(); for (MPartDescriptor descriptor : descriptors) { if (isFilteredByActivity(descriptor.getElementId()) || isIntroView(descriptor.getElementId())) { continue; } List<String> tags = descriptor.getTags(); for (String tag : tags) { if (!tag.startsWith(CATEGORY_TAG)) continue; String categoryTag = tag.substring(CATEGORY_TAG_LENGTH); if (element.equals(categoryTag)) categoryDescriptors.add(descriptor); } } return categoryDescriptors.toArray(); } return new Object[0]; }