@Nullable
  TextAttributesKey getEditorAttributesKey(@Nullable NamedScope scope, @Nullable Project project) {
    if (myTools != null && scope != null) {
      for (ScopeToolState state : myTools) {
        if (Objects.equals(state.getScope(project), scope)) {
          return state.getEditorAttributesKey();
        }
      }
    }
    return myDefaultState.getEditorAttributesKey();
  }
@Nullable
  TextAttributesKey getEditorAttributesKey(@Nullable NamedScope scope, @Nullable Project project)