String (final AbstractDependencyData<?> data) { if (data instanceof LibraryDependencyData) { final String name = data.getInternalName(); if (StringUtil.isNotEmpty(name)) { return name; } else { Set<String> paths = ((LibraryDependencyData)data).getTarget().getPaths(LibraryPathType.BINARY); if (!paths.isEmpty()) { String url = paths.iterator().next(); return PathUtil.toPresentableUrl(url); } else { return ProjectModelBundle.message("empty.library.title"); } } } return data.getInternalName(); }