MavenDistribution (@Nullable String workingDirectory) { if (!useWrapper() || workingDirectory == null) { return mySettingsDistribution.getValue(); } String multiModuleDir = myWorkingDirToMultiModuleMap.computeIfAbsent(workingDirectory, this::resolveMultiModuleDirectory); return myMultimoduleDirToWrapperedMavenDistributionsMap.computeIfAbsent(multiModuleDir, this::getWrapperDistribution); }