public static ExternalSystemSourceType from(IExternalSystemSourceType sourceType) {
    for (ExternalSystemSourceType systemSourceType : ExternalSystemSourceType.values()) {
      if (systemSourceType.isGenerated == sourceType.isGenerated() &&
          systemSourceType.isResource == sourceType.isResource() &&
          systemSourceType.isTest == sourceType.isTest() &&
          systemSourceType.isExcluded == sourceType.isExcluded()) {
        return systemSourceType;
      }
    }
    throw new IllegalArgumentException("Invalid source type: " + sourceType);
  }
public static ExternalSystemSourceType from(IExternalSystemSourceType sourceType)