public void reset(@NotNull RunnerAndConfigurationSettings settings) {
    boolean isManagedRunConfiguration = settings.getConfiguration().getType().isManaged();

    myRCStorageType = settings.isStoredInArbitraryFileInProject()
                      ? RCStorageType.ArbitraryFileInProject
                      : settings.isStoredInDotIdeaFolder()
                        ? RCStorageType.DotIdeaFolder
                        : RCStorageType.Workspace;
    myFolderPathIfStoredInArbitraryFile = PathUtil.getParentPath(StringUtil.notNullize(settings.getPathIfStoredInArbitraryFileInProject()));

    myRCStorageTypeInitial = myRCStorageType;
    myFolderPathIfStoredInArbitraryFileInitial = myFolderPathIfStoredInArbitraryFile;

    myStoreAsFileCheckBox.setEnabled(isManagedRunConfiguration);
    myStoreAsFileCheckBox.setSelected(myRCStorageType == RCStorageType.DotIdeaFolder ||
                                      myRCStorageType == RCStorageType.ArbitraryFileInProject);
    myStoreAsFileGearButton.setVisible(isManagedRunConfiguration);
    myStoreAsFileGearButton.setEnabled(myStoreAsFileCheckBox.isSelected());
    validatePath();
  }
public void reset(@NotNull RunnerAndConfigurationSettings settings)