public static void searchParentEditorConfigs(@NotNull VirtualFile root,
                                               @NotNull Callback callback) {
    for (VirtualFile parentDir = root.getParent(); parentDir != null; parentDir = parentDir.getParent()) {
      VirtualFile editorConfig = getEditorConfigUnder(parentDir);
      if (editorConfig != null) {
        if (callback.found(editorConfig) == Callback.Result.Stop) {
          return;
        }
      }
    }
  }
public static void searchParentEditorConfigs(@NotNull VirtualFile root,
                                               @NotNull Callback callback)