class ProjectExplorerContentResolver {

    List<FolderItem> getSegmentSiblings(final Path path) {
        final List<FolderItem> result = new ArrayList<>();
        final org.uberfire.java.nio.file.Path nioPath = Paths.convert(path);

        if (nioPath.equals(nioPath.getRoot())) {
            result.add(explorerServiceHelper.toFolderItem(nioPath));
        } else {
            final org.uberfire.java.nio.file.Path nioParentPath = nioPath.getParent();
            for (org.uberfire.java.nio.file.Path sibling : getDirectoryIterator(nioParentPath)) {
                result.add(explorerServiceHelper.toFolderItem(sibling));
            }
        }

        return result;
    }

    @Inject public  ProjectExplorerContentResolver(final KieModuleService moduleService,
                                          final ExplorerServiceHelper helper,
                                          final ExplorerServiceHelper explorerServiceHelper,
                                          final WorkspaceProjectService projectService);

}