private static boolean isYamlElementType(PsiElement element) {
    return PsiUtilCore.getElementType(element) instanceof YAMLElementType;
  }
private static boolean isYamlElementType(PsiElement element)