File (@NotNull File workingDir) { File baseDir = workingDir; File dir = workingDir; while ((dir = dir.getParentFile()) != null) { MavenServerStatsCollector.fileRead(new File(dir, ".mvn")); if (new File(dir, ".mvn").exists()) { baseDir = dir; break; } } try { return baseDir.getCanonicalFile(); } catch (IOException e) { return baseDir.getAbsoluteFile(); } }