void (Map<ExternalSystemSourceType, String> paths, @NotNull ExternalSystemSourceType type, @Nullable String path) { if (paths == null) return; if (path == null) { paths.remove(type); return; } paths.put(type, ExternalSystemApiUtil.toCanonicalPath(path)); }