private static boolean shouldInsertAutomaticHyphen(@NotNull PsiFile file) {
    return CodeStyle.getCustomSettings(file, YAMLCodeStyleSettings.class).AUTOINSERT_SEQUENCE_MARKER;
  }
private static boolean shouldInsertAutomaticHyphen(@NotNull PsiFile file)