private static String getNamespaceFromReference(PsiReference reference) {
    return reference.getRangeInElement().substring(reference.getElement().getText());
  }
private static String getNamespaceFromReference(PsiReference reference)