while ((node != null) && (node.getNodeType() != ASTNode.METHOD_DECLARATION)) {
while (node != null) { if (node.getNodeType() == ASTNode.METHOD_DECLARATION) { return (MethodDeclaration) node; } if (node instanceof AbstractTypeDeclaration || node instanceof AnonymousClassDeclaration) { return null; }
	public static MethodDeclaration findParentMethodDeclaration(ASTNode node) {		while ((node != null) && (node.getNodeType() != ASTNode.METHOD_DECLARATION)) {			node= node.getParent();		}		return (MethodDeclaration) node;	}