code: private boolean shouldIgnore(CmsElementView view, Map<CmsUUID, CmsElementView> views, String myPath) {
  
          if (isSelectParent()) {
              for (CmsElementView otherView : views.values()) {
                  CmsUUID parentViewId = otherView.getParentViewId();
                  if (parentViewId != null) {
                      CmsElementView parentOfOther = views.get(parentViewId);
                      if ((parentOfOther != null)
                          && (parentOfOther.getResource() != null)
                          && parentOfOther.getResource().getRootPath().equals(myPath)) {
                          // can't have "grandparents"
                          return true;
                      }
                  }
              }
              boolean isStandardView = (view.getResource() != null) || view.getId().isNullUUID();
              if ((view.getParentViewId() != null) || !isStandardView) {
                  // synthetic view, or already a sub-view of something else
                  return true;
              }
              if ((view.getResource() != null) && view.getResource().getRootPath().equals(myPath)) {
                  // can't make a view its own parent
                  return true;
              }
          }
          return false;
      }
docs: Check if the view should be ignored when constructing select options.<p>
  
  @param view the view to check
  @param views the map of all views
  @param myPath the path of the currently edited resource
  
  @return true if the view should be ignored