private static <T> T computeIfSmartMode(@NotNull Project project, @NotNull Supplier<T> operation) {
    return DumbService.isDumb(project) ? null : operation.get();
  }
private static <T> T computeIfSmartMode(@NotNull Project project, @NotNull Supplier<T> operation)