code: public Set<String> getBasicScopeNames(ScopeType type) {
          if (type != null) {
              Set<String> names = new HashSet<String>();
              for (IBasicScope child : children.keySet()) {
                  if (child.getType().equals(type)) {
                      names.add(child.getName());
                  }
              }
              return names;
          }
          return getScopeNames();
      }
docs: Return basic scope names matching given type
  
  @param type Scope type
  @return set of scope names