String (@NotNull PsiType type) { if (type.equals(PsiTypes.intType())) return "comparingInt"; if (type.equals(PsiTypes.doubleType())) return "comparingDouble"; if (type.equals(PsiTypes.longType())) return "comparingLong"; if (InheritanceUtil.isInheritor(type, CommonClassNames.JAVA_LANG_COMPARABLE)) return "comparing"; return null; }