List<String> (@NotNull Module module, boolean split) { String name = module.getName(); Project project = module.isDisposed() ? null : module.getProject(); ModuleManager manager = getModuleManager(project); if (manager != null) { if (manager.hasModuleGroups()) { String[] path = manager.getModuleGroupPath(module); if (path != null && path.length != 0) { List<String> list = new SmartList<>(path); list.add(name); return list; } } else if (split) { return StringUtil.split(name, "."); } } return new SmartList<>(name); }