} else if (sdk instanceof DirectoryBasedDartSdk) {
File directory = ((DirectoryBasedDartSdk) sdk).getDirectory();
if (directory == null) {
instrumentation.data("sdkDirectoryIsNull", true);
} else {
instrumentation.data("sdkDirectoryIsNull", false);
instrumentation.data("sdkPath", directory.getAbsolutePath());
instrumentation.data("sdkDirectoryExists", directory.exists());
}
} else {
instrumentation.data("sdkPath", "--unknown--");