How can I get access to the project LibraryTable in Maia?

For IJ 9 beta 2 (code name Maia) the call:

com.intellij.openapi.project.Project project;

// initialize project with a valid value.

LibraryTable libraryTable = project.getComponent(LibraryTable.class);

returns null.

I used this code to get access to the project library table. What should I use instead?

1 comment
Comment actions Permalink

I figure out by myself: LibraryTable libraryTable = LibraryTablesRegistrar.getInstance().getLibraryTable(project);


Please sign in to leave a comment.