boolean (@Nullable PsiMethod method) { if (method == null || !HardcodedMethodConstants.EQUALS.equals(method.getName())) return false; PsiParameterList parameterList = method.getParameterList(); return parameterList.getParametersCount() == 1 && PsiTypes.booleanType().equals(method.getReturnType()) && TypeUtils.isJavaLangObject(Objects.requireNonNull(parameterList.getParameter(0)).getType()); }