code: public List<SQLProperty> getForeignKeysToEntity(SQLiteEntity entity, String fieldName) {
  		List<SQLProperty> result = new ArrayList<>();
  		if (StringUtils.hasText(fieldName)) {
  			for (SQLProperty item : this.collection) {
  				if (item.isForeignKey() && entity.getName().equals(item.foreignParentClassName)
  						&& item.getName().equals(fieldName)) {
  					result.add(item);
  				}
  			}
  		} else {
  			for (SQLProperty item : this.collection) {
  				if (item.isForeignKey() && entity.getName().equals(item.foreignParentClassName)) {
  					result.add(item);
  				}
  			}
  		}
  		return result;
  	}
docs: <p>Given an entity, find all field that are foreign key to entity.</p>
  
  
  @param entity
  referred entity
  @param fieldName
  @return list of foreign key o empty list