code: private static boolean containsCollisionFormula(TileCollision tile, CollisionCategory category)
      {
          final Collection<CollisionFormula> formulas = tile.getCollisionFormulas();
          for (final CollisionFormula formula : category.getFormulas())
          {
              if (formulas.contains(formula))
              {
                  return true;
              }
          }
          return false;
      }
docs: Check if tile contains at least one collision from the category.
  
  @param tile The tile reference.
  @param category The category reference.
  @return <code>true</code> if there is a formula in common between tile and category.