private void findUsagesBelow(RankProfile profile) {
        ProgressIndicatorProvider.checkCanceled();
        if ( ! visited.add(profile)) return;

        if ( ! profile.equals(this.profile))
            ReadAction.compute(() -> processor().process(new UsageInfo(profile.definition())));
        for (var child : ReadAction.compute(() -> profile.children()))
            findUsagesBelow(child);
    }
An instance created to find usages of a rank profile once.

@author bratseth
integration/intellij/src/main/java/ai/vespa/intellij/schema/findUsages/RankProfileUsageFinder.java