AntBuildFileBase (@NotNull PsiFile file) { final VirtualFile vFile = file.getVirtualFile(); if (vFile != null) { for (AntBuildFileBase bFile : myBuildFiles) { if (vFile.equals(bFile.getVirtualFile())) { return bFile; } } } return null; }