MethodTreeImpl extends JavaTree implements MethodTree { @Override public Symbol.MethodSymbol symbol() { return methodBinding != null ? root.sema.methodSymbol(methodBinding) : Symbols.unknownMethodSymbol; } MethodTreeImpl(FormalParametersListTreeImpl parameters, @Nullable SyntaxToken defaultToken, @Nullable ExpressionTree defaultValue);  MethodTreeImpl(
    @Nullable TypeTree returnType,
    IdentifierTree simpleName,
    FormalParametersListTreeImpl parameters,
    @Nullable SyntaxToken throwsToken,
    ListTree<TypeTree> throwsClauses,
    @Nullable BlockTree block,
    @Nullable SyntaxToken semicolonToken); MethodTreeImpl complete(TypeTree returnType, IdentifierTree simpleName, SyntaxToken semicolonToken); MethodTreeImpl completeWithTypeParameters(TypeParameterListTreeImpl typeParameters); MethodTreeImpl completeWithModifiers(ModifiersTreeImpl modifiers); @Override Kind kind(); @Override ModifiersTree modifiers(); @Override TypeParameters typeParameters(); @Nullable @Override TypeTree returnType(); @Override IdentifierTree simpleName(); @Nullable @Override SyntaxToken openParenToken(); @Override List<VariableTree> parameters(); @Nullable @Override SyntaxToken closeParenToken(); @Override SyntaxToken throwsToken(); @Override ListTree<TypeTree> throwsClauses(); @Nullable @Override BlockTree block(); @Nullable @Override SyntaxToken semicolonToken(); @Nullable @Override SyntaxToken defaultToken(); @Nullable @Override ExpressionTree defaultValue(); @Override Symbol.MethodSymbol symbol(); @Override void accept(TreeVisitor visitor); @Override int getLine(); @Nullable @Override CFG cfg(); @Override Iterable<Tree> children(); @Override @Nullable Boolean isOverriding(); boolean isAnnotatedOverride(); @Nullable
  public IMethodBinding methodBinding; }
@Test void varargs_flag() { Symbol.MethodSymbol methodSymbol = getUniqueMethod("class A { public static void main(String[] args){} }").symbol(); assertThat(JUtils.isVarArgsMethod(methodSymbol)).isFalse(); methodSymbol = getUniqueMethod("class A { public static void main(String... args){} }").symbol(); assertThat(JUtils.isVarArgsMethod(methodSymbol)).isTrue(); }