private static void deleteDartSdkGlobalLibConfiguredInOldIde() { final LibraryEx library = (LibraryEx) ApplicationLibraryTable.getApplicationTable().getLibraryByName("Dart SDK"); final PersistentLibraryKind<?> kind = library == null ? null : library.getKind(); if (library != null && kind != null && "javaScript".equals(kind.getKindId())) { ApplicationManager.getApplication() .runWriteAction( new Runnable() { public void run() { ApplicationLibraryTable.getApplicationTable().removeLibrary(library); } }); } }
@Nullable public static DartSdk getGlobalDartSdk() { return findDartSdkAmongGlobalLibs(ApplicationLibraryTable.getApplicationTable().getLibraries()); }