for (IProblemLocation location : locations) {
String offset = Integer.toString(location.getOffset());
if (location.getProblemIdentifier() == PEXProblemIdentifier.USAGE_RELATED && ! existing.contains(offset)) {
InjectUseStatementCompletionProposal prop = new InjectUseStatementCompletionProposal("", location.getOffset(), location.getLength(), null, "Inject missing use statement", 100);
corrections.add(prop);
existing.add(offset);
}
}