code: private boolean checkConstraint(Collection<String> constraints, Tile tile)
      {
          return tile != null
                 && constraints.contains(mapGroup.getGroup(tile))
                 && !tile.getFeature(TileCollision.class).getCollisionFormulas().isEmpty();
      }
docs: Check the constraint with the specified tile.
  
  @param constraints The constraint groups to check.
  @param tile The tile to check with.
  @return <code>true</code> if can be ignored, <code>false</code> else.