fixed NPE
refactored
ImplementationTextSelectioner