@Override
  public @Nullable CodeStyleScheme importScheme(@NotNull Project project,
                                                @NotNull VirtualFile selectedFile,
                                                @NotNull CodeStyleScheme currentScheme,
                                                @NotNull SchemeFactory<? extends CodeStyleScheme> schemeFactory) throws SchemeImportException {
    Element rootElement = SchemeImportUtil.loadSchemeDom(selectedFile);
    Element schemeRoot = findSchemeRoot(rootElement);
    Pair<String, CodeStyleScheme> importPair =
      ApplicationManager.getApplication().isUnitTestMode()
      ? pair(currentScheme.getName(), currentScheme)
      : ImportSchemeChooserDialog.selectOrCreateTargetScheme(project, currentScheme, schemeFactory, getSchemeName(schemeRoot));
    return importPair != null ? readSchemeFromDom(schemeRoot, importPair.second) : null;
  }
@Override
  public @Nullable CodeStyleScheme importScheme(@NotNull Project project,
                                                @NotNull VirtualFile selectedFile,
                                                @NotNull CodeStyleScheme currentScheme,
                                                @NotNull SchemeFactory<? extends CodeStyleScheme> schemeFactory)