@Nullable
  public Modality getContainerModality() {
    KmDeclarationContainer container = getDeclarationContainer();
    return container instanceof KmClass? Attributes.getModality((KmClass)container) : null;
  }
@Nullable
  public Modality getContainerModality()