return itemName != null && itemName.equals(flintItem.getDisplayName); added brackets after getDisplayName