Android Studio marked these parameters as errors because it is an instance, not a class, that is being passed from Java.