Creates a Location from a PsiElement. If the element can't be determined, the KtFile with a character offset can be used.