Cleanup: use light services

^IDEA-254577

GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
This commit is contained in:
Andrey Cherkasov
2024-01-18 12:56:33 +04:00
committed by intellij-monorepo-bot
parent 33dc0b0678
commit 1a62d88764
232 changed files with 325 additions and 315 deletions

View File

@@ -57,8 +57,6 @@
serviceImplementation="com.intellij.openapi.roots.impl.ModulePackageIndexImpl"/>
<projectService serviceInterface="com.intellij.openapi.roots.PackageIndex"
serviceImplementation="com.intellij.openapi.roots.impl.ProjectPackageIndexImpl"/>
<projectService
serviceImplementation="com.intellij.psi.impl.search.HighlightingCaches"/>
<implicitToStringSearch implementation="com.intellij.psi.impl.search.ImplicitToStringSearcher"/>
<functionalExpressionSearch implementation="com.intellij.psi.impl.search.JavaFunctionalExpressionSearcher"/>
<definitionsScopedSearch implementation="com.intellij.codeInsight.navigation.ClassImplementationsSearch"/>

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl.search;
import com.intellij.openapi.components.Service;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiMethod;
@@ -15,6 +16,7 @@ import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentMap;
@Service(Service.Level.PROJECT)
final class HighlightingCaches {
public static HighlightingCaches getInstance(Project project) {
return project.getService(HighlightingCaches.class);