if (input instanceof FileEditorInput) { return JavaCore.createCompilationUnitFrom(((FileEditorInput) input).getFile());
if (input instanceof IFileEditorInput) { IFile file= ((IFileEditorInput) input).getFile(); IJavaElement element= JavaCore.create(file); if (element instanceof ICompilationUnit) return (ICompilationUnit) element;
	private ICompilationUnit getCompilationUnit() {		IEditorInput input= fTextEditor.getEditorInput();		if (input instanceof FileEditorInput) {			return JavaCore.createCompilationUnitFrom(((FileEditorInput) input).getFile());		}		return null;	}	