Recommend to use API methods instead of directly accessing internal class.
com.intellij.codeInsight.TargetElementUtilBase