@Nullable
  public static Sdk setupSdk(
      @NotNull Sdk[] allSdks,
      @NotNull VirtualFile homeDir,
      final SdkType sdkType,
      final boolean silent,
      @Nullable final SdkAdditionalData additionalData,
      @Nullable final String customSdkSuggestedName) {
    final ProjectJdkImpl sdk;
    try {
      sdk = createSdk(allSdks, homeDir, sdkType, additionalData, customSdkSuggestedName);

      sdkType.setupSdkPaths(sdk);
    } catch (Exception e) {
      if (!silent) {
        Messages.showErrorDialog(
            "Error configuring SDK: "
                + e.getMessage()
                + ".\nPlease make sure that "
                + FileUtil.toSystemDependentName(homeDir.getPath())
                + " is a valid home path for this SDK type.",
            "Error Configuring SDK");
      }
      return null;
    }
    return sdk;
  }
  @Override
  public void setupSdkPaths(Sdk sdk) {
    final SdkModificator modificator = sdk.getSdkModificator();

    SdkAdditionalData data = sdk.getSdkAdditionalData();
    if (data == null) {
      data = DartSdkUtil.testDartSdk(sdk.getHomePath());
      modificator.setSdkAdditionalData(data);
    }

    DartSdkUtil.setupSdkPaths(sdk.getHomeDirectory(), modificator);

    modificator.commitChanges();
    super.setupSdkPaths(sdk);
  }
 public boolean setupSdkPaths(final Sdk sdk, final SdkModel sdkModel) {
   setupSdkPaths(sdk);
   return true;
 }