public void setEditorAttributesKey(@Nullable String externalName, @Nullable String scopeName) {
    if (scopeName == null) {
      myDefaultState.setEditorAttributesExternalName(externalName);
    }
    else {
      if (myTools == null) return;
      for (ScopeToolState tool : myTools) {
        if (scopeName.equals(tool.getScopeName())) {
          tool.setEditorAttributesExternalName(externalName);
          break;
        }
      }
    }
  }
public void setEditorAttributesKey(@Nullable String externalName, @Nullable String scopeName)