void () { final URLClassLoader oldClassLoader = myClassLoader; myClassLoader = createProjectContentClassLoader(myProject, myParentClassLoader); JavaFXPlatformHelper.setDefaultClassLoader(myClassLoader); if (oldClassLoader != null) { try { oldClassLoader.close(); } catch (IOException e) { LOG.info(e); } } final List<JavaFXPlatformHelper.CustomComponent> customComponents = DumbService.getInstance(myProject) .runReadActionInSmartMode(this::collectCustomComponents); try { final JavaFXPlatformHelper.CustomLibrary customLibrary = new JavaFXPlatformHelper.CustomLibrary(myClassLoader, customComponents); myEditorController.setLibrary(customLibrary); myCustomComponents = customComponents; } catch (Exception e) { LOG.info(e); } }