public static boolean isAssignment(ASTNode node){
  return ASSIGNMENT_ELEMENT_TYPES.contains(node.getElementType());
}

public static boolean isAssignment ( ASTNode node ) { return ASSIGNMENT_ELEMENT_TYPES . contains ( node . getElementType ( ) ) ; }
allows to answer if given node wraps assignment operation .
