private void rememberCurrentVisibility() {
    PropertiesComponent.getInstance().setValue(getPersistenceId(), Optional.ofNullable(getVisibility()).map(Object::toString).orElse(null));
  }
private void rememberCurrentVisibility()