Processing visibility flags in methods