List<MavenPlugin> (State state) { synchronized (state) { if (state.myUnresolvedPluginsCache == null) { List<MavenPlugin> result = new ArrayList<>(); for (MavenPlugin each : getDeclaredPlugins(state)) { if (!MavenArtifactUtil.hasArtifactFile(state.myLocalRepository, each.getMavenId())) { result.add(each); } } state.myUnresolvedPluginsCache = result; } return state.myUnresolvedPluginsCache; } }