PlusProgramPoint extends BinaryProgramPoint { public static boolean originatesFrom(Tree element) { return element.is(Tree.Kind.PLUS, Tree.Kind.PLUS_ASSIGNMENT); }  static boolean originatesFrom(Tree element);  }
@Test public void matchingTrees() throws Exception { assertThat(PlusProgramPoint.originatesFrom(tree(Kind.PLUS))).isTrue(); assertThat(PlusProgramPoint.originatesFrom(tree(Kind.PLUS_ASSIGNMENT))).isTrue(); assertThat(PlusProgramPoint.originatesFrom(tree(Kind.RETURN_STATEMENT))).isFalse(); assertThat(PlusProgramPoint.originatesFrom(tree(Kind.DIVIDE))).isFalse(); assertThat(PlusProgramPoint.originatesFrom(tree(Kind.BITWISE_OR))).isFalse(); }