Create the quick fix if needed.

<p>User data contains the name of the expected type.

@param provider the quick fix provider.
@param issue the issue to fix.
@param acceptor the quick fix acceptor.
433015
public static void accept(SARLQuickfixProvider provider, Issue issue, IssueResolutionAcceptor acceptor) {
		final String[] data = issue.getData();
		if (data != null && data.length > 0) {
			final String expectedType = data[0];
			final ReturnTypeAddModification modification = new ReturnTypeAddModification(expectedType);
			modification.setIssue(issue);
			modification.setTools(provider);
			acceptor.accept(issue,
					MessageFormat.format(Messages.SARLQuickfixProvider_13, expectedType),
					Messages.SARLQuickfixProvider_14,
					JavaPluginImages.IMG_CORRECTION_ADD,
					modification,
					IProposalRelevance.CHANGE_RETURN_TYPE);
		}
	}
980150
@Fix(io.sarl.lang.validation.IssueCodes.DISCOURAGED_BOOLEAN_EXPRESSION)
	public void fixDiscouragedBooleanExpression(final Issue issue, IssueResolutionAcceptor acceptor) {
		BehaviorUnitGuardRemoveModification.accept(this, issue, acceptor);
	}
698514
@Override
    public void accept(ICompilationUnit sourceUnit, AccessRestriction accessRestriction) {
        // Switch the current policy and compilation result for this unit to the requested one.
        CompilationResult unitResult =
            new CompilationResult(sourceUnit, this.totalUnits, this.totalUnits, this.options.maxProblemsPerUnit);
        unitResult.checkSecondaryTypes = true;
        try {
            if (this.options.verbose) {
                String count = String.valueOf(this.totalUnits + 1);
                this.out.println(
                    Messages.bind(Messages.compilation_request,
                        new String[] {
                            count,
                            count,
                            new String(sourceUnit.getFileName())
                        }));
            }
            // diet parsing for large collection of unit
            CompilationUnitDeclaration parsedUnit;
            if (this.totalUnits < this.parseThreshold) {
                parsedUnit = this.parser.parse(sourceUnit, unitResult);
            } else {
                parsedUnit = this.parser.dietParse(sourceUnit, unitResult);
            }
            // initial type binding creation
            this.lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction);
            addCompilationUnit(sourceUnit, parsedUnit);

            // binding resolution
            this.lookupEnvironment.completeTypeBindings(parsedUnit);
        } catch (AbortCompilationUnit e) {
            // at this point, currentCompilationUnitResult may not be sourceUnit, but some other
            // one requested further along to resolve sourceUnit.
            if (unitResult.compilationUnit == sourceUnit) { // only report once
                this.requestor.acceptResult(unitResult.tagAsAccepted());
            } else {
                throw e; // want to abort enclosing request to compile
            }
        }
    }
324018
protected void completeJavaTypes(ContentAssistContext context,
			ITypesProposalProvider.Filter filter, ICompletionProposalAcceptor acceptor) {
		completeJavaTypes(context,
				TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE,
				true,
				getQualifiedNameValueConverter(),
				filter,
				acceptor);
	}
442078
@Fix(SyntaxIssueCodes.USED_RESERVED_KEYWORD)
	public void fixNoViableAlternativeAtKeyword(final Issue issue, IssueResolutionAcceptor acceptor) {
		ProtectKeywordModification.accept(this, issue, acceptor);
	}
117403
function Resolver(readerType) {
  // Add all fields here so that all resolvers share the same hidden class.
  this._readerType = readerType;
  this._read = null;
  this.itemsType = null;
  this.size = 0;
  this.symbols = null;
  this.valuesType = null;
}
1350810
public void acceptAgreement() {

        // store accepted flag in current users settings
        getSettings().setUserAgreementAccepted(true);
        // check accepted agreement version
        if (getAcceptedVersion() < getRequiredVersion()) {
            // a new (higher) version was accepted, increase version to store and reset accepted count
            setAcceptedVersion(getRequiredVersion());
            setAcceptedCount(0);
        }
        // increase accepted count
        setAcceptedCount(getAcceptedCount() + 1);
        // create the JSON data structure that is stored in the additional info
        JSONObject jsonData = new JSONObject();
        try {
            jsonData.put(KEY_ACCEPTED_VERSION, getRequiredVersion());
            jsonData.put(KEY_ACCEPTED_COUNT, m_acceptedCount);
            // store accepted data in users additional information
            CmsUser user = getCms().getRequestContext().getCurrentUser();
            user.setAdditionalInfo(CmsUserSettings.LOGIN_USERAGREEMENT_ACCEPTED, jsonData.toString());
            // write the changed user
            getCms().writeUser(user);
        } catch (Exception e) {
            LOG.error(e);
        }
    }
304147
@SuppressWarnings("unchecked")
	public <T> RestBuilder addProvider(Class<? extends ContextProvider<T>> provider) {

		Assert.notNull(provider, "Missing context provider!");
		registeredProviders.put(null, provider);
		return this;
	}
532715
public void completePayment(@NonNull PaymentCompletionProvider provider) {
        provider.completePayment(mPaymentSessionData,
                new PaymentResultListener() {
                    @Override
                    public void onPaymentResult(@NonNull @PaymentResult String paymentResult) {
                        mPaymentSessionData.setPaymentResult(paymentResult);
                        mCustomerSession.resetUsageTokens();
                        if (mPaymentSessionListener != null) {
                            mPaymentSessionListener
                                    .onPaymentSessionDataChanged(mPaymentSessionData);
                        }
                    }
                });
    }
341747
public static void accept(SARLQuickfixProvider provider, Issue issue, IssueResolutionAcceptor acceptor) {
		for (final String newName : issue.getData()) {
			final String msg = MessageFormat.format(
					Messages.SARLQuickfixProvider_11,
					newName);
			final MemberRenameModification modification = new MemberRenameModification(newName);
			modification.setIssue(issue);
			modification.setTools(provider);
			acceptor.accept(issue,
					msg,
					MessageFormat.format(Messages.SARLQuickfixProvider_12, newName),
					JavaPluginImages.IMG_CORRECTION_RENAME,
					modification,
					IProposalRelevance.RENAME_REFACTORING);
		}
	}
1208876
@Fix(io.sarl.lang.validation.IssueCodes.MANUAL_INLINE_DEFINITION)
	public void fixManualInlineDefinition(final Issue issue, IssueResolutionAcceptor acceptor) {
		AnnotationRemoveModification.accept(this, issue, acceptor);
	}
48451
@Fix("*")
	public void fixSuppressWarnings(Issue issue, IssueResolutionAcceptor acceptor) {
		if (isIgnorable(issue.getCode())) {
			SuppressWarningsAddModification.accept(this, issue, acceptor);
		}
	}
706453
private void setIssuerUniqueId(Object val) throws CertificateException {
        if (version.compare(CertificateVersion.V2) < 0) {
            throw new CertificateException("Invalid version");
        }
        if (!(val instanceof UniqueIdentity)) {
            throw new CertificateException(
                             "IssuerUniqueId class type invalid.");
        }
        issuerUniqueId = (UniqueIdentity)val;
    }
980010
@Fix(io.sarl.lang.validation.IssueCodes.INVALID_EXTENDED_TYPE)
	public void fixInvalidExtendedType(final Issue issue, IssueResolutionAcceptor acceptor) {
		ExtendedTypeRemoveModification.accept(this, issue, acceptor);
	}
449379
public void accept(Acceptable<ClassInfo> accept) {
        try {
            boolean re = accept.accept(classInfo);
            if (!this.accept && re)
                this.accept = true;
        } catch (Exception e) {
            logger.error("class accept error", e);
        }
    }
1007735
public synchronized void validateSamlIdentityProviderDefinition(SamlIdentityProviderDefinition providerDefinition) throws MetadataProviderException {
        ExtendedMetadataDelegate added, deleted = null;
        if (providerDefinition == null) {
            throw new NullPointerException();
        }
        if (!hasText(providerDefinition.getIdpEntityAlias())) {
            throw new NullPointerException("SAML IDP Alias must be set");
        }
        if (!hasText(providerDefinition.getZoneId())) {
            throw new NullPointerException("IDP Zone Id must be set");
        }
        SamlIdentityProviderDefinition clone = providerDefinition.clone();
        added = getExtendedMetadataDelegate(clone);
        String entityIDToBeAdded = ((ConfigMetadataProvider) added.getDelegate()).getEntityID();
        if (!StringUtils.hasText(entityIDToBeAdded)) {
            throw new MetadataProviderException("Emtpy entityID for SAML provider with zoneId:" + providerDefinition.getZoneId() + " and origin:" + providerDefinition.getIdpEntityAlias());
        }

        boolean entityIDexists = false;

        for (SamlIdentityProviderDefinition existing : getIdentityProviderDefinitions()) {
            ConfigMetadataProvider existingProvider = (ConfigMetadataProvider) getExtendedMetadataDelegate(existing).getDelegate();
            if (entityIDToBeAdded.equals(existingProvider.getEntityID()) &&
              !(existing.getUniqueAlias().equals(clone.getUniqueAlias()))) {
                entityIDexists = true;
                break;
            }
        }

        if (entityIDexists) {
            throw new MetadataProviderException("Duplicate entity ID:" + entityIDToBeAdded);
        }
    }
752942
public static void accept(SARLQuickfixProvider provider, Issue issue, IssueResolutionAcceptor acceptor) {
		final IFile file = provider.getProjectUtil().findFileStorage(issue.getUriToProblem(), false);
		final ResourceSet resourceSet = provider.getResourceSetProvider().get(file.getProject());
		final EObject failingObject;
		try {
			failingObject = resourceSet.getEObject(issue.getUriToProblem(), true);
		} catch (Exception exception) {
			// Something is going really wrong. Must of the time the cause is a major syntax error.
			return;
		}
		XtendAnnotationTarget eObject = EcoreUtil2.getContainerOfType(failingObject, XtendAnnotationTarget.class);
		boolean first = true;
		int relevance = IProposalRelevance.ADD_SUPPRESSWARNINGS;
		while (eObject != null) {
			final URI uri = EcoreUtil2.getNormalizedURI(eObject);
			final SuppressWarningsAddModification modification = new SuppressWarningsAddModification(uri, issue.getCode());
			modification.setIssue(issue);
			modification.setTools(provider);
			final String elementName;
			final QualifiedName name = provider.getQualifiedNameProvider().getFullyQualifiedName(eObject);
			if (name != null) {
				elementName = name.getLastSegment();
			} else if (first) {
				elementName = Messages.AddSuppressWarnings_0;
			} else {
				elementName = null;
			}
			if (elementName != null) {
				acceptor.accept(issue,
						MessageFormat.format(Messages.AddSuppressWarnings_1, elementName),
						MessageFormat.format(Messages.AddSuppressWarnings_2, elementName),
						JavaPluginImages.IMG_OBJS_ANNOTATION_ALT,
						modification,
						relevance);
				--relevance;
			}
			first = false;
			eObject = EcoreUtil2.getContainerOfType(eObject.eContainer(), XtendAnnotationTarget.class);
		}
	}