Share code to determine a forbidden method