Object (@NotNull PsiType type, boolean isMax) { if (type.equals(PsiTypes.intType())) { return isMax ? Integer.MIN_VALUE : Integer.MAX_VALUE; } else if (type.equals(PsiTypes.longType())) { return isMax ? Long.MIN_VALUE : Long.MAX_VALUE; } else if (type.equals(PsiTypes.doubleType())) { return isMax ? Double.MIN_VALUE : Double.MAX_VALUE; } return null; }