mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[completion] IJPL-207762 cleanup ImportStaticLookupActionProvider
GitOrigin-RevId: cdc2a768225207db8efa8b2c7063e5f64c0319d0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
883276a90f
commit
e6b86f229b
+5
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user