File (VirtualFile pomFile) { if (pomFile == null) return null; VirtualFile parent = pomFile.getParent(); if (parent == null) return null; return new File(parent.getPath(), MavenConstants.PROFILES_XML); }