You can't just change this. You would need to return null if the method is not accessible.