[inspections] better naming

GitOrigin-RevId: 583501439c5744a094e4fae5ad7505cb9611e963
This commit is contained in:
Anna Kozlova
2022-06-28 16:18:48 +02:00
committed by intellij-monorepo-bot
parent 66f5b0f75e
commit 1796357cb5

View File

@@ -205,7 +205,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
psiResolved = ((UUnaryExpression)node).resolveOperator();
}
if (psiResolved == null) {
psiResolved = tryFindKotlinParameter(node);
psiResolved = tryParenthesisOverloading(node);
}
psiResolved = returnToPhysical(psiResolved);
@@ -399,7 +399,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
}
}
private static PsiElement tryFindKotlinParameter(@NotNull UExpression node) {
private static PsiElement tryParenthesisOverloading(@NotNull UExpression node) {
if (node instanceof UCallExpression && "invoke".equals(((UCallExpression)node).getMethodName())) {
UExpression receiver = ((UCallExpression)node).getReceiver();
if (receiver instanceof UResolvable) {