void (@NotNull Project project) { BuildManager buildManager = BuildManager.getInstance(); if (buildManager == null) return; Path buildSystemDirectory = buildManager.getBuildSystemDirectory(project); try { PathKt.delete(buildSystemDirectory); return; } catch (Exception ignore) { } try { FileUtil.delete(buildSystemDirectory.toFile()); } catch (Exception e) { LOG.warn("Unable to remove build system directory.", e); } }