GoToItemFactory factory = GoToItemFactory.getInstance();
while (children.hasMoreElements()) {
FileObject child = children.nextElement();
if (FileUtils.isPhpFile(child)) {
// use EditorCookie if offset is 0 in order to open a file
items.add(factory.create(child, DEFAULT_OFFSET, null));
}
}
sort(items);
return items;
}