Optimize the function GetPrecursors() by breaking the for loop as soon as one match is found.
GetPrecursors()