[completion] IJPL-207762 cleanup ImportStaticLookupActionProvider

GitOrigin-RevId: cdc2a768225207db8efa8b2c7063e5f64c0319d0
This commit is contained in:
Max Medvedev
2025-10-12 11:39:37 +00:00
committed by intellij-monorepo-bot
parent 883276a90f
commit e6b86f229b
@@ -1,3 +1,4 @@
// Copyright 2000-2025 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.codeInsight.lookup.Lookup;
@@ -12,9 +13,11 @@ import org.jetbrains.annotations.NotNull;
import javax.swing.*;
public final class ImportStaticLookupActionProvider implements LookupActionProvider {
final class ImportStaticLookupActionProvider implements LookupActionProvider {
@Override
public void fillActions(final @NotNull LookupElement element, @NotNull Lookup lookup, @NotNull Consumer<? super @NotNull LookupElementAction> consumer) {
public void fillActions(@NotNull LookupElement element,
@NotNull Lookup lookup,
@NotNull Consumer<? super @NotNull LookupElementAction> consumer) {
final StaticallyImportable item = element.as(StaticallyImportable.CLASS_CONDITION_KEY);
if (item == null || !item.canBeImported()) {
return;