void (@NotNull String minValue, @NotNull String maxValue) { if ("c".equals(myType)) { myMin = 0; myMax = 1; myComplexMin = minValue; myComplexMax = maxValue; return; } if ("b".equals(myType)) { myMin = "True".equals(minValue) ? 1 : 0; myMax = "True".equals(maxValue) ? 1 : 0; return; } try { myMin = Double.parseDouble(minValue); myMax = Double.parseDouble(maxValue); } catch (NumberFormatException e) { LOG.error(String.format("Wrong bounds for '%s' type: minValue = %s, maxValue = %s", myType, minValue, maxValue)); } }