boolean (PsiElement nameElement, PsiExpression arg1, PsiExpression arg2) { PsiType type1 = arg1.getType(); PsiType type2 = arg2.getType(); if (type1 instanceof PsiPrimitiveType && type1.equals(type2) && !TypeConversionUtil.isFloatOrDoubleType(type1)) { holder.registerProblem(nameElement, JavaAnalysisBundle.message("inspection.can.be.replaced.with.message", "=="), new ReplaceWithEqualsFix(true)); return true; } return false; }