public void add(PossibleMatch possibleMatch) {
IPath path = possibleMatch.openable.getPackageFragmentRoot().getPath();
ObjectVector possibleMatches = (ObjectVector) this.rootsToPossibleMatches.get(path);
if (possibleMatches != null) {
PossibleMatch storedMatch = (PossibleMatch) possibleMatches.find(possibleMatch);
if (storedMatch != null) {
while (storedMatch.getSimilarMatch() != null) {
storedMatch = storedMatch.getSimilarMatch();
}
storedMatch.setSimilarMatch(possibleMatch);