public boolean createClassStaticMenu(JPopupMenu menu, ClassTarget ct, Class<?> cl) {
    ViewFilter filter;
    View view = View.getView(cl);

    filter = new ViewFilter(ViewFilter.STATIC | ViewFilter.PACKAGE);
    MethodView[] allMethods = view.getAllMethods();
    if (createMenuItems(menu, allMethods, filter, 0, allMethods.length, "", ct)) return true;

    return false;
  }
  /**
   * Creates a class menu containing the constructors.
   *
   * @param menu the popup menu to add the class menu items to
   * @param cl Class object associated with this class target
   */
  public boolean createClassConstructorMenu(JPopupMenu menu, ClassTarget ct, Class<?> cl) {
    ViewFilter filter;
    View view = View.getView(cl);

    if (!java.lang.reflect.Modifier.isAbstract(cl.getModifiers())) {
      filter = new ViewFilter(ViewFilter.INSTANCE | ViewFilter.PACKAGE);
      ConstructorView[] constructors = view.getConstructors();

      if (createMenuItems(menu, constructors, filter, 0, constructors.length, "new ", ct))
        return true;
    }

    return false;
  }