Alignment (ASTNode node) { IElementType elementType = node.getElementType(); Predicate<? super ASTNode> noneAlignmentCondition = myNoneAlignmentCondition.get(elementType); if (noneAlignmentCondition != null && noneAlignmentCondition.test(node)) { return null; } Alignment alignment = myAlignments.get(elementType); if (alignment == null) { return myDefaultAlignment; } return alignment == NO_ALIGNMENT ? null : alignment; }