Method's name should reflect what it does

isValidForGeneratedCode -> isInaccessibleViaGeneratedCode for better understanding.