@ApiStatus.Internal
  //need for proper persistance of the component, do not use in application code
  public MavenHomeTypeForPersistence getMavenHomeTypeForPersistence() {
    if (mavenHomeType instanceof MavenWrapper) {
      return MavenHomeTypeForPersistence.WRAPPER;
    }
    else if (mavenHomeType instanceof BundledMaven3) {
      return MavenHomeTypeForPersistence.BUNDLED3;
    }
    else if (mavenHomeType instanceof BundledMaven4) {
      return MavenHomeTypeForPersistence.BUNDLED4;
    }
    else {
      return MavenHomeTypeForPersistence.CUSTOM;
    }
  }
@ApiStatus.Internal
  //need for proper persistance of the component, do not use in application code
  public MavenHomeTypeForPersistence getMavenHomeTypeForPersistence()