* @see org.eclipse.ui.model.BaseWorkbenchContentProvider#hasChildren(java.lang.Object)
*/
public boolean hasChildren(Object element) {
if (element instanceof PythonFile) {
//If we're not showing nodes, return false.
INavigatorContentService contentService = viewer.getNavigatorContentService();
INavigatorFilterService filterService = contentService.getFilterService();
ViewerFilter[] visibleFilters = filterService.getVisibleFilters(true);
for (ViewerFilter viewerFilter : visibleFilters) {
if (viewerFilter instanceof PythonNodeFilter) {
return false;
}