if (coords == null) { return false; }   final IHex curHex = game.getBoard().getHex(coords);  return isInBuilding(game, entity.elevationOccupied(curHex), coords);
return isInBuilding(game, entity, entity.getPosition());
    public static boolean isInBuilding(IGame game, Entity entity, Coords coords) {        // No game, no building.        if (game == null) {            return false;        }        // Null entities can't be in a building.        if (entity == null) {            return false;        }        // Null coordinates can't have buildings.        if (coords == null) {            return false;        }        // Get the Hex at those coordinates.        final IHex curHex = game.getBoard().getHex(coords);        return isInBuilding(game, entity.elevationOccupied(curHex), coords);    }