AlignmentStrategy (@NotNull ASTNode child) { AlignerConfigurationWrapper currentAlignmentWrapper = null; for (AlignerConfigurationWrapper configuration : myConfigurations) { if (configuration.myConfiguration.shouldAlign(child)) { currentAlignmentWrapper = configuration; break; } } AlignerConfigurationWrapper wrapperWithStrategyToPreserve = isWhiteSpaceWithBlankLines(child.getTreePrev()) ? null : currentAlignmentWrapper; updateAllStrategiesExcept(wrapperWithStrategyToPreserve); return currentAlignmentWrapper == null ? AlignmentStrategy.getNullStrategy() : currentAlignmentWrapper.myCurrentStrategy; }