List<LibraryTable> (final Project project, final boolean showCustomLibraryTables) { final List<LibraryTable> tables = new ArrayList<>(); final LibraryTablesRegistrar registrar = LibraryTablesRegistrar.getInstance(); if (project != null) { tables.add(registrar.getLibraryTable(project)); } tables.add(registrar.getLibraryTable()); if (showCustomLibraryTables) { tables.addAll(registrar.getCustomLibraryTables()); } return tables; }