boolean (@Nullable PsiMethod method) { if (method == null) { return false; } final PsiClassType stringType = TypeUtils.getStringType(method); return methodMatches(method, "java.lang.String", PsiTypes.intType(), "compareToIgnoreCase", stringType); }