VirtualFile (VirtualFile pomFile) { if (pomFile == null) return null; VirtualFile parent = pomFile.getParent(); if (parent == null || !parent.isValid()) return null; return parent.findChild(MavenConstants.PROFILES_XML); }