boolean (@NotNull Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { ArtifactManager artifactManager = ArtifactManager.getInstance(project); Collection<? extends Artifact> artifacts = artifactManager.getArtifactsByType(JavaFxApplicationArtifactType.getInstance()); return CachedValueProvider.Result.create(!artifacts.isEmpty(), artifactManager.getModificationTracker()); }); }