private @Nullable RunnerAndConfigurationSettings findSettings(@NotNull Content content) {
    RunContentDescriptor descriptor = RunContentManagerImpl.getRunContentDescriptorByContent(content);
    if (descriptor == null) return null;

    RunnerAndConfigurationSettings settings = findSettings(descriptor);
    if (settings == null) return null;

    RunConfiguration baseConfiguration = getBaseConfiguration(settings.getConfiguration());
    if (baseConfiguration != null) {
      RunnerAndConfigurationSettings baseSettings = RunManager.getInstance(myProject).findSettings(baseConfiguration);
      if (baseSettings != null) {
        return baseSettings;
      }
    }

    return settings;
  }
private @Nullable RunnerAndConfigurationSettings findSettings(@NotNull Content content)