mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
add single static import: allow second single static import if it doesn't produce ambiguity or hiding of on-demand import (IDEA-155031)
This commit is contained in:
@@ -1235,6 +1235,11 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
return className + "." + member.getName();
|
||||
}
|
||||
|
||||
public static boolean isFromDefaultPackage(PsiClass aClass) {
|
||||
final PsiFile containingFile = aClass.getContainingFile();
|
||||
return containingFile instanceof PsiClassOwner && StringUtil.isEmpty(((PsiClassOwner)containingFile).getPackageName());
|
||||
}
|
||||
|
||||
static boolean checkSameExpression(PsiElement templateExpr, final PsiExpression expression) {
|
||||
return templateExpr.equals(skipParenthesizedExprDown(expression));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user