boolean () { if (myCustomComponents == null) return false; final Collection<JavaFXPlatformHelper.CustomComponent> customComponents = DumbService.getInstance(myProject) .runReadActionInSmartMode(this::collectCustomComponents); if (!new HashSet<>(myCustomComponents).equals(new HashSet<>(customComponents))) { return false; } JavaFXPlatformHelper.javafxInvokeLater(() -> { if (myEditorController != null) { loadFile(); } }); return true; }