[kotlin] KTIJ-29075 Available kotlin run configuration in dumb mode

GitOrigin-RevId: bd99306e5794a7f4c483c6f664f5d52204a462e2
This commit is contained in:
Marat Dinmukhametov
2024-05-15 12:13:58 +03:00
committed by intellij-monorepo-bot
parent 86a3121d51
commit c9372a4ec8
5 changed files with 16 additions and 11 deletions

View File

@@ -115,9 +115,10 @@ public final class PsiMethodUtil {
}
private static boolean isJavaLangStringArray(@NotNull PsiParameter parameter) {
final PsiType type = parameter.getType();
if (!(type instanceof PsiArrayType)) return false;
try {
final PsiType type = parameter.getType();
if (!(type instanceof PsiArrayType)) return false;
return DumbService.getInstance(parameter.getProject()).computeWithAlternativeResolveEnabled(
(ThrowableComputable<Boolean, Throwable>)() -> {
final PsiType componentType = ((PsiArrayType)type).getComponentType();