if (analyzer.getLastCoveringNode() instanceof TypeDeclaration) return (TypeDeclaration) analyzer.getLastCoveringNode();
	private TypeDeclaration getTypeDeclarationNode() throws JavaModelException {		SelectionAnalyzer analyzer= new SelectionAnalyzer(Selection.createFromStartLength(fInputClass.getNameRange().getOffset(), fInputClass.getNameRange().getLength() +1), true);		getAST(fInputClass.getCompilationUnit()).accept(analyzer);		if (analyzer.getFirstSelectedNode() != null){			if (analyzer.getFirstSelectedNode().getParent() instanceof TypeDeclaration)				return (TypeDeclaration)analyzer.getFirstSelectedNode().getParent();		}		//XXX workaround for 21757		if (analyzer.getLastCoveringNode() instanceof TypeDeclaration)			return (TypeDeclaration) analyzer.getLastCoveringNode();		return null;		}