boolean (final Block block) { Block current = block; while (!current.getSubBlocks().isEmpty()) { current = current.getSubBlocks().get(0); } ASTNode node = current instanceof LeafBlock ? ((LeafBlock)current).getNode() : null; return node != null && node.getElementType() == JavaTokenType.DOT; }