BVAL-442 Make getConstrainedMethods(MethodType methodType, MethodType... methodTypes) to be less error-prone