private boolean removeBuildFileImpl(@NotNull AntBuildFile buildFile) {
    XmlFile antFile = buildFile.getAntFile();
    if (antFile != null) {
      AntSupport.markFileAsAntFile(antFile.getOriginalFile().getVirtualFile(), antFile.getProject(), false);
    }

    boolean removed = myBuildFiles.remove(buildFile);
    removed |= myModelToBuildFileMap.remove(buildFile) != null;

    if (removed) {
      myEventDispatcher.getMulticaster().buildFileRemoved(buildFile);
    }
    return removed;
  }
private boolean removeBuildFileImpl(@NotNull AntBuildFile buildFile)