VirtualFile (@NotNull Module module) { DataNode<? extends ModuleData> moduleData = findGradleModuleData(module); if (moduleData == null) return null; DataNode<GradleProjectBuildScriptData> dataNode = ExternalSystemApiUtil.find(moduleData, GradleProjectBuildScriptData.KEY); if (dataNode == null) return null; File data = dataNode.getData().getBuildScriptSource(); if (data == null) return null; return VfsUtil.findFileByIoFile(data, true); }