void (String libraryName) { String platformApiJar = PathUtil.getJarPathForClass(JBList.class); File file = new File(platformApiJar); PsiTestUtil.addLibrary(getModule(), libraryName, file.getParent(), file.getName()); }