[java, import-module] Refactor import statement hierarchy IDEA-353091

IJ-CR-139321

GitOrigin-RevId: f5a2188b18afad7cb2912d3ff282ef9929f20ca6
This commit is contained in:
Aleksey Dobrynin
2024-07-19 12:07:10 +02:00
committed by intellij-monorepo-bot
parent 0fb89ef48e
commit 0a0e345835
25 changed files with 155 additions and 306 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInsight.editorActions.smartEnter;
import com.intellij.lang.ASTNode;
@@ -88,7 +88,8 @@ public class AfterSemicolonEnterProcessor implements ASTNodeEnterProcessor {
ASTNode node = BasicJavaAstTreeUtil.toNode(psiElement);
return
BasicJavaAstTreeUtil.is(node, BASIC_IMPORT_STATEMENT) ||
BasicJavaAstTreeUtil.is(node, BASIC_IMPORT_STATIC_STATEMENT);
BasicJavaAstTreeUtil.is(node, BASIC_IMPORT_STATIC_STATEMENT) ||
BasicJavaAstTreeUtil.is(node, BASIC_IMPORT_MODULE_STATEMENT);
}
private static int getErrorElementOffset(PsiElement elt) {