boolean (VirtualFile mavenProjectFile, boolean forceRead) { String projectPath = mavenProjectFile.getPath(); if (tree.isIgnored(projectPath)) return false; Ref<Boolean> previousUpdateRef = new Ref<>(); updated.compute(mavenProjectFile, (file, value) -> { previousUpdateRef.set(value); return Boolean.TRUE.equals(value) || forceRead; }); var previousUpdate = previousUpdateRef.get(); if ((null != previousUpdate && !forceRead) || Boolean.TRUE.equals(previousUpdate)) { // we already updated this file MavenLog.LOG.trace("Has already been updated (%s): %s; forceRead: %s".formatted(previousUpdate, mavenProjectFile, forceRead)); return false; } if (null != process) { process.setText(MavenProjectBundle.message("maven.reading.pom", projectPath)); process.setText2(""); } return true; }