Source:
<code>public static void check( final HaxeTypeCheckExpr expr, final AnnotationHolder holder ) { final PsiElement[] children = expr.getChildren(); if (children.length == 2) { final HaxeGenericResolver resolver = HaxeGenericResolverUtil.generateResolverFromScopeParents(expr); final ResultHolder statementResult = HaxeTypeResolver.getPsiElementType(children[0], expr, resolver); ResultHolder assertionResult = SpecificTypeReference.getUnknown(expr).createHolder(); if (children[1] instanceof HaxeTypeOrAnonymous) { assertionResult = HaxeTypeResolver.getTypeFromTypeOrAnonymous((HaxeTypeOrAnonymous)children[1]); ResultHolder resolveResult = resolver.resolve(assertionResult.getType().toStringWithoutConstant()); if (null != resolveResult) { assertionResult = resolveResult; } } if (!assertionResult.canAssign(statementResult)) { final HaxeDocumentModel document = HaxeDocumentModel.fromElement(expr); <START> Annotation annotation = holder.createErrorAnnotation(children[0], <END> "Statement of type '" + statementResult.getType().toStringWithoutConstant() + "' does not unify with asserted type '" + assertionResult.getType().toStringWithoutConstant() + ".'"); annotation.registerFix(new HaxeFixer("Remove type check") { @Override public void run() { document.replaceElementText(expr, children[0].getText()); } }); annotation.registerFix(new HaxeFixer("Change type check to " + statementResult.toStringWithoutConstant()) { @Override public void run( ) { document.replaceElementText(children[1], statementResult.toStringWithoutConstant()); } }); } } }</code><technical_language>move string resources</technical_language>

Target:
public static void check( final HaxeTypeCheckExpr expr, final AnnotationHolder holder ) { final PsiElement[] children = expr.getChildren(); if (children.length == 2) { final HaxeGenericResolver resolver = HaxeGenericResolverUtil.generateResolverFromScopeParents(expr); final ResultHolder statementResult = HaxeTypeResolver.getPsiElementType(children[0], expr, resolver); ResultHolder assertionResult = SpecificTypeReference.getUnknown(expr).createHolder(); if (children[1] instanceof HaxeTypeOrAnonymous) { assertionResult = HaxeTypeResolver.getTypeFromTypeOrAnonymous((HaxeTypeOrAnonymous)children[1]); ResultHolder resolveResult = resolver.resolve(assertionResult.getType().toStringWithoutConstant()); if (null != resolveResult) { assertionResult = resolveResult; } } if (!assertionResult.canAssign(statementResult)) { final HaxeDocumentModel document = HaxeDocumentModel.fromElement(expr); Annotation annotation = holder.createErrorAnnotation(children[0], HaxeBundle.message("haxe.semantic.statement.does.not.unify.with.asserted.type", statementResult.getType().toStringWithoutConstant(), assertionResult.getType().toStringWithoutConstant())); annotation.registerFix(new HaxeFixer(HaxeBundle.message("remove.type.check")) { @Override public void run() { document.replaceElementText(expr, children[0].getText()); } }); annotation.registerFix(new HaxeFixer(HaxeBundle.message("change.type.check.to.0", statementResult.toStringWithoutConstant())) { @Override public void run( ) { document.replaceElementText(children[1], statementResult.toStringWithoutConstant()); } }); } } }