String (@NotNull ExternalSystemNode<?> node) { Object thatData = node.getData(); if (thatData instanceof LibraryDependencyData dependencyData) { String externalName = dependencyData.getExternalName(); if (StringUtil.isEmpty(externalName)) { Set<String> paths = dependencyData.getTarget().getPaths(LibraryPathType.BINARY); if (paths.size() == 1) { return new File(paths.iterator().next()).getName(); } } } return node.getName(); }