boolean (@NotNull CommonCodeStyleSettings settings, @NotNull ASTNode node) { if (node.getElementType() == JavaTokenType.DOT) { if (settings.KEEP_LINE_BREAKS) { ASTNode next = node.getTreeNext(); if (next != null && next.getElementType() == JavaElementType.REFERENCE_PARAMETER_LIST && next.getTextLength() == 0) { next = next.getTreeNext(); } return !(next != null && next.getPsi() instanceof PsiWhiteSpace && next.textContains('\n')); } return true; } else if (node.getElementType() == JavaTokenType.IDENTIFIER) { if (settings.KEEP_LINE_BREAKS) { ASTNode prev = node.getTreePrev(); if (prev instanceof PsiWhiteSpace && prev.textContains('\n')) { prev = prev.getTreePrev(); if (prev != null && prev.getElementType() == JavaElementType.REFERENCE_PARAMETER_LIST && prev.getTextLength() == 0) { prev = prev.getTreePrev(); } return prev != null && prev.getElementType() == JavaTokenType.DOT; } } return false; } return false; }