void (DiagnosticCollector collector, List<ValueParameterDescriptor> parameters) { for (int i = 0; i < parameters.size(); i++) { ValueParameterDescriptor valueParameterDescriptor = parameters.get(i); if (valueParameterDescriptor.getIndex() != i) { report(collector, valueParameterDescriptor, "Incorrect index: " + valueParameterDescriptor.getIndex() + " but must be " + i); } } }