mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
[java] Use HighlightingFeature.LVTI
GitOrigin-RevId: ce2d4c1a6338457ff57f691fc6fdc2542de5022c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5b6191dd34
commit
a8f88fa062
@@ -1,5 +1,6 @@
|
||||
package de.plushnikov.intellij.plugin.intention.valvar.to;
|
||||
|
||||
import com.intellij.codeInsight.daemon.impl.analysis.HighlightingFeature;
|
||||
import com.intellij.codeInspection.RemoveRedundantTypeArgumentsUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
@@ -29,7 +30,7 @@ public abstract class AbstractReplaceExplicitTypeWithVariableIntentionAction ext
|
||||
|
||||
@Override
|
||||
public boolean isAvailableOnDeclarationStatement(PsiDeclarationStatement context) {
|
||||
if (PsiUtil.isLanguageLevel10OrHigher(context)) {
|
||||
if (HighlightingFeature.LVTI.isAvailable(context)) {
|
||||
return false;
|
||||
}
|
||||
PsiElement[] declaredElements = context.getDeclaredElements();
|
||||
|
||||
Reference in New Issue
Block a user