I feel like this could be a good IntelliJ "folding" inspection. Like how they have that structure that folds down Java 7 and below's anonymous classes into lambdas, they could make a structure that converts the
3
in your example into
inputDimensionCount = 3