Added a new method to obtain CodeFragments given its position and source