public @NotNull ToolsImpl getTools(@NotNull String name, @Nullable Project project) {
    return Objects.requireNonNull(
      getToolsOrNull(name, project),
      () -> "Can't find tools for \"" + name + "\" in the profile \"" + getName() + "\"");
  }
public @NotNull ToolsImpl getTools(@NotNull String name, @Nullable Project project)