public static void markFileAsAntFile(final VirtualFile file, final Project project, final boolean value) {
    if (file.isValid() && ForcedAntFileAttribute.isAntFile(file) != value) {
      ForcedAntFileAttribute.forceAntFile(file, value);
      TransactionGuard.getInstance().assertWriteSafeContext(ModalityState.defaultModalityState());
      ModalityUiUtil.invokeLaterIfNeeded(ModalityState.defaultModalityState(), project.getDisposed(),
                                         () -> PsiManager.getInstance(project).dropPsiCaches());
    }
  }
public static void markFileAsAntFile(final VirtualFile file, final Project project, final boolean value)