boolean (DomElement domElement, @NotNull Module module) { VirtualFile virtualFile = DomUtil.getFile(domElement).getVirtualFile(); return virtualFile != null && ModuleRootManager.getInstance(module).getFileIndex().isUnderSourceRootOfType(virtualFile, JavaModuleSourceRootTypes.PRODUCTION); }