clean up generation of EnclosingMethod attribute