Applicability (ArgInfo<PsiType> @NotNull [] infos, @NotNull GrSignature signature) { GrClosureParameter[] parameters = signature.getParameters(); for (int i = 0; i < infos.length; i++) { ArgInfo<PsiType> info = infos[i]; if (info.args.size() != 1 || info.isMultiArg) continue; PsiType type = info.args.get(0); if (type != null) continue; PsiType pType = parameters[i].getType(); if (pType != null && !pType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) { return Applicability.canBeApplicable; } } return Applicability.applicable; }