private static @NotNull ShowUsagesActionState getState(@NotNull Project project) {
    return project.getService(ShowUsagesActionState.class);
  }
private static @NotNull ShowUsagesActionState getState(@NotNull Project project)