@Override
  public @NotNull PsiElement extendMatchedByDownUp(@NotNull PsiElement targetNode) {
    if (targetNode instanceof PsiIdentifier) {
      targetNode = targetNode.getParent();
    }
    final PsiElement parent = targetNode.getParent();
    if (parent instanceof PsiTypeElement || parent instanceof PsiStatement || parent instanceof PsiLocalVariable) {
      targetNode = parent;
    }
    return targetNode;
  }
@Override
  public @NotNull PsiElement extendMatchedByDownUp(@NotNull PsiElement targetNode)