Checks if a public method can be converted into a private method and does the conversion.