void (CompileContext context) { final String compilerId = getUsedCompilerId(context); if (LOG.isDebugEnabled()) { LOG.debug("Java compiler ID: " + compilerId); } MODULE_PATH_SPLITTER.set(context, new ModulePathSplitter(new ExplodedModuleNameFinder(context))); JavaCompilingTool compilingTool = JavaBuilderUtil.findCompilingTool(compilerId); COMPILING_TOOL.set(context, compilingTool); SHOWN_NOTIFICATIONS.set(context, Collections.synchronizedSet(new HashSet<>())); COMPILER_USAGE_STATISTICS.set(context, new ConcurrentHashMap<>()); BuildDataManager dataManager = context.getProjectDescriptor().dataManager; if (!isJavac(compilingTool)) { dataManager.setProcessConstantsIncrementally(false); } JavaBackwardReferenceIndexWriter.initialize(context); for (JavacFileReferencesRegistrar registrar : JpsServiceManager.getInstance().getExtensions(JavacFileReferencesRegistrar.class)) { if (registrar.isEnabled()) { registrar.initialize(); myRefRegistrars.add(registrar); } } }