diff --git a/java/java-impl/src/com/intellij/codeInsight/completion/JavaProximityStatistician.java b/java/java-impl/src/com/intellij/codeInsight/completion/JavaProximityStatistician.java index d25cf23bb7b8..dab72841c1cf 100644 --- a/java/java-impl/src/com/intellij/codeInsight/completion/JavaProximityStatistician.java +++ b/java/java-impl/src/com/intellij/codeInsight/completion/JavaProximityStatistician.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2009 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.codeInsight.completion; import com.intellij.psi.util.proximity.ProximityStatistician; @@ -26,6 +12,7 @@ import org.jetbrains.annotations.NotNull; public class JavaProximityStatistician extends ProximityStatistician{ @Override public StatisticsInfo serialize(@NotNull final PsiElement element, @NotNull final ProximityLocation location) { + if (element.getLanguage().getID().equals("Scala")) return null; return element instanceof PsiMember ? JavaStatisticsManager.createInfo(null, (PsiMember)element) : null; } }