VirtualFile (@NotNull String fileName) { VirtualFile vFile = super.findFileByName(fileName); if (vFile != null) { return vFile; } for (Module m: ModuleManager.getInstance(getProject()).getModules()) { Sdk s = PythonSdkUtil.findPythonSdk(m); if (PythonSdkUtil.isRemote(s)) { PyRemoteSdkAdditionalDataBase data = (PyRemoteSdkAdditionalDataBase) s.getSdkAdditionalData(); if (data != null) { for (PathMappingProvider provider: PathMappingProvider.getSuitableMappingProviders(data)) { PathMappingSettings mappingSettings = provider.getPathMappingSettings(getProject(), data); String localFile = mappingSettings.convertToLocal(fileName); VirtualFile file = LocalFileSystem.getInstance().findFileByPath(localFile); if (file != null && file.exists()) { return file; } } } } } return null; }