@Nullable
  private CodeStyleScheme importExternalCodeStyle(@NotNull SchemeImporter<CodeStyleScheme> importer, @NotNull CodeStyleScheme currentScheme)
    throws SchemeImportException {
    final VirtualFile selectedFile = SchemeImportUtil
      .selectImportSource(importer.getSourceExtensions(), getSchemesPanel(), CodeStyleSchemesUIConfiguration.Util.getRecentImportFile(), null);
    if (selectedFile != null) {
      CodeStyleSchemesUIConfiguration.Util.setRecentImportFile(selectedFile);
      final SchemeCreator schemeCreator = new SchemeCreator();
      CodeStyleScheme importedScheme = null;
      try {
        importedScheme = importer.importScheme(getModel().getProject(), selectedFile, currentScheme, schemeCreator);
        if (importedScheme != null) {
          if (schemeCreator.isSchemeWasCreated()) {
            getModel().fireSchemeListChanged();
          }
          else {
            getModel().updateScheme(importedScheme);
          }
          return importedScheme;
        }
      }
      finally {
        if (importedScheme == null && schemeCreator.isSchemeWasCreated()) {
          getModel().removeScheme(schemeCreator.getCreatedScheme());
          getModel().selectScheme(currentScheme, null);
        }
      }
    }
    return null;
  }
@Nullable
  private CodeStyleScheme importExternalCodeStyle(@NotNull SchemeImporter<CodeStyleScheme> importer, @NotNull CodeStyleScheme currentScheme)