String () { List<String> parentGroupPath; if (parent instanceof ModuleGroupNode) { ModuleGroup parentGroup = ((ModuleGroupNode)parent).getModuleGroup(); parentGroupPath = parentGroup != null ? parentGroup.getGroupPathList() : Collections.emptyList(); } else { parentGroupPath = Collections.emptyList(); } List<String> groupPath = myModuleGroup.getGroupPathList(); if (ContainerUtil.startsWith(groupPath, parentGroupPath)) { return StringUtil.join(groupPath.subList(parentGroupPath.size(), groupPath.size()), "."); } else { return StringUtil.join(groupPath, "."); } }