Like this?
public int someCheck(EntityPlayer player, String lorePar, Item item) {
ItemStack itemInHand = player.inventory.getCurrentItem();
NBTTagList nbt = itemInHand.getTagCompound().getCompoundTag("display").getCompoundTag("Lore").getTagList("TAG_STRING");
if (nbt != null){
ArrayList<String> lore = new ArrayList<String>();
for(int i = 0; i < nbt.tagCount(); i++){
lore.add(nbt.tagAt(i).getName());
}
if(item.equals(itemInHand) && lore!=null && lore.contains(lorePar)){
return 1;
}
}
return 0;
}