BodyDeclaration parentNode= (BodyDeclaration)ASTNodes.getParent(n, BodyDeclaration.class); if (parentNode != null) return ((TypeDeclaration)parentNode).bodyDeclarations();
if (n != null) { BodyDeclaration parentNode= (BodyDeclaration)ASTNodes.getParent(n, BodyDeclaration.class); if (parentNode != null) return ((TypeDeclaration)parentNode).bodyDeclarations(); }
	private List getContainerList(IParent container, CompilationUnit root) throws JavaModelException {				if (container instanceof ICompilationUnit)			return root.types();					if (container instanceof IType) {			ISourceRange sourceRange= ((IType)container).getNameRange();			ASTNode n= NodeFinder.perform(root, sourceRange);			BodyDeclaration parentNode= (BodyDeclaration)ASTNodes.getParent(n, BodyDeclaration.class);			if (parentNode != null)				return ((TypeDeclaration)parentNode).bodyDeclarations();			return null;		}					return null;	}