AbstractUrl (Object element) { if (element instanceof ModuleGroup group) { final String[] groupPath = group.getGroupPath(); return new ModuleGroupUrl(StringUtil.join(groupPath, ";")); } return null; }