private void findKeys(@NotNull Processor<? super YAMLKeyNavigationItem> consumer, @NotNull String pattern) {
    if (ActionUtil.isDumbMode(myProject)) {
      return;
    }
    assert myProject != null;

    GlobalSearchScope filter = SearchEverywhereManager.getInstance(myProject).isEverywhere()
                               ? ProjectScope.getAllScope(myProject)
                               : ProjectScope.getProjectScope(myProject);
    Plow.ofSequence(searchForKey(pattern, filter, myProject))
      .cancellable()
      .mapNotNull(keyData -> new YAMLKeyNavigationItem(myProject,
                                                       keyData.getKey(),
                                                       keyData.getFile(),
                                                       keyData.getOffset(),
                                                       computePrettyLocation(keyData.getFile())))
      .processWith(consumer);
  }
private void findKeys(@NotNull Processor<? super YAMLKeyNavigationItem> consumer, @NotNull String pattern)