private static boolean isOpeningBracket(@Nullable ASTNode node) {
    return node != null && PyTokenTypes.OPEN_BRACES.contains(node.getElementType()) && node == node.getTreeParent().getFirstChildNode();
  }
private static boolean isOpeningBracket(@Nullable ASTNode node)