}
}
private static DebuggableFileFinder getDebuggableFileFinder(@NotNull KarmaServer karmaServer) {
BiMap<String, VirtualFile> mappings = HashBiMap.create();
KarmaConfig karmaConfig = karmaServer.getKarmaConfig();
if (karmaConfig != null) {
File basePath = new File(karmaConfig.getBasePath());
VirtualFile vBasePath = VfsUtil.findFileByIoFile(basePath, false);
if (vBasePath != null && vBasePath.isValid()) {
String baseUrl = karmaServer.formatUrlWithoutUrlRoot("/base");
mappings.put(baseUrl, vBasePath);
}