private static boolean checkAdminPermissionsAndConfigureInterpreter(@NotNull Project project,
                                                                      @NotNull ProblemDescriptor descriptor,
                                                                      @NotNull Sdk sdk) {
    if (!PythonSdkUtil.isRemote(sdk) && PySdkExtKt.adminPermissionsNeeded(sdk)) {
      final int answer = askToConfigureInterpreter(project, sdk);
      switch (answer) {
        case Messages.YES -> {
          new PyInterpreterInspection.ConfigureInterpreterFix().applyFix(project, descriptor);
          return true;
        }
        case Messages.CANCEL, -1 -> {
          return true;
        }
      }
    }
    return false;
  }
private static boolean checkAdminPermissionsAndConfigureInterpreter(@NotNull Project project,
                                                                      @NotNull ProblemDescriptor descriptor,
                                                                      @NotNull Sdk sdk)