boolean (VirtualFile file, ProjectFileIndex index) { VirtualFile root = index.getClassRootForFile(file); while ((file = file.getParent()) != null && !file.equals(root)) { if (Comparing.equal(file.getNameSequence(), "versions")) { VirtualFile parent = file.getParent(); if (parent != null && Comparing.equal(parent.getNameSequence(), "META-INF")) { return true; } } } return false; }