private CommandLink getName(final Dependency row,
                                final Function<Dependency, DocRef> docRefExtractor,
                                final boolean from) {
        final DocRef docRef = docRefExtractor.apply(row);
        if (docRef != null) {
            if (from || (openableTypes.contains(docRef.getType()) && row.isOk())) {
                final String name = NullSafe.requireNonNullElseGet(
                        docRef.getName(),
                        docRef::getUuid);
                return new CommandLink(
                        docRef.getName(),
                        "Open " + docRef.getType() + " '" + name + "'",
                        () -> onOpenDoc(docRef));
            } else {
                return CommandLink.withoutCommand(docRef.getName());
            }
        } else {
            return null;
        }
    }
Reveal the doc in the Explorer tree
stroom-core-client/src/main/java/stroom/importexport/client/presenter/DependenciesPresenter.java